From 9042503b4a90158bc9667728d5e9b977cf5722d1 Mon Sep 17 00:00:00 2001 From: ulysses-you Date: Mon, 6 Nov 2023 14:43:05 +0800 Subject: [PATCH] docs --- docs/get-started/Velox.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/get-started/Velox.md b/docs/get-started/Velox.md index ffe4e63dd784..8a30df2fdc37 100644 --- a/docs/get-started/Velox.md +++ b/docs/get-started/Velox.md @@ -785,3 +785,17 @@ If you want to disable Gluten UI, add a config when submitting `--conf spark.glu ## History server Gluten UI also supports Spark history server. Add gluten-ui jar into the history server classpath, e.g., $SPARK_HOME/jars, then restart history server. + +# Gluten Implicits + +Gluten provides a helper class to get the fallback summary from a Spark Dataset. + +``` +import org.apache.spark.sql.execution.GlutenImplicits._ +val df = spark.sql("SELECT * FROM t") +df.fallbackSummary +``` + +Note that, if AQE is enabled, but the query is not materialized, then it will re-plan +the query execution with disabled AQE. It is a workaround to get the final plan, and it may +cause the inconsistent results with a materialized query. However, we have no choice.