This is an automated email from the ASF dual-hosted git repository.

comphead pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 4417d5c022 doc: fix indent format explain (#16085)
4417d5c022 is described below

commit 4417d5c02230dfd0077bde3b0d7d67cd781ce14c
Author: Chen Chongchen <[email protected]>
AuthorDate: Tue May 20 08:05:24 2025 +0800

    doc: fix indent format explain (#16085)
    
    * doc: fix indent format explain
    
    * update
---
 docs/source/library-user-guide/query-optimizer.md | 2 +-
 docs/source/user-guide/explain-usage.md           | 4 ++--
 docs/source/user-guide/sql/explain.md             | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/source/library-user-guide/query-optimizer.md 
b/docs/source/library-user-guide/query-optimizer.md
index 03cd7b5bbb..a1ccd0a15a 100644
--- a/docs/source/library-user-guide/query-optimizer.md
+++ b/docs/source/library-user-guide/query-optimizer.md
@@ -193,7 +193,7 @@ Looking at the `EXPLAIN` output we can see that the 
optimizer has effectively re
 `3 as "1 + 2"`:
 
 ```text
-> explain select 1 + 2;
+> explain format indent select 1 + 2;
 +---------------+-------------------------------------------------+
 | plan_type     | plan                                            |
 +---------------+-------------------------------------------------+
diff --git a/docs/source/user-guide/explain-usage.md 
b/docs/source/user-guide/explain-usage.md
index d89ed5f0e7..68712012f4 100644
--- a/docs/source/user-guide/explain-usage.md
+++ b/docs/source/user-guide/explain-usage.md
@@ -40,7 +40,7 @@ Let's see how DataFusion runs a query that selects the top 5 
watch lists for the
 site `http://domcheloveplanet.ru/`:
 
 ```sql
-EXPLAIN SELECT "WatchID" AS wid, "hits.parquet"."ClientIP" AS ip
+EXPLAIN FORMAT INDENT SELECT "WatchID" AS wid, "hits.parquet"."ClientIP" AS ip
 FROM 'hits.parquet'
 WHERE starts_with("URL", 'http://domcheloveplanet.ru/')
 ORDER BY wid ASC, ip DESC
@@ -268,7 +268,7 @@ LIMIT 10;
 We can again see the query plan by using `EXPLAIN`:
 
 ```sql
-> EXPLAIN SELECT "UserID", COUNT(*) FROM 'hits.parquet' GROUP BY "UserID" 
ORDER BY COUNT(*) DESC LIMIT 10;
+> EXPLAIN FORMAT INDENT SELECT "UserID", COUNT(*) FROM 'hits.parquet' GROUP BY 
"UserID" ORDER BY COUNT(*) DESC LIMIT 10;
 
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [...]
 | plan_type     | plan                                                         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
              [...]
 
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [...]
diff --git a/docs/source/user-guide/sql/explain.md 
b/docs/source/user-guide/sql/explain.md
index 9984de147e..c5e2e215a6 100644
--- a/docs/source/user-guide/sql/explain.md
+++ b/docs/source/user-guide/sql/explain.md
@@ -118,7 +118,7 @@ See [Reading Explain Plans](../explain-usage.md) for more 
information on how to
 0 row(s) fetched.
 Elapsed 0.004 seconds.
 
-> EXPLAIN SELECT SUM(x) FROM t GROUP BY b;
+> EXPLAIN FORMAT INDENT SELECT SUM(x) FROM t GROUP BY b;
 
+---------------+-------------------------------------------------------------------------------+
 | plan_type     | plan                                                         
                 |
 
+---------------+-------------------------------------------------------------------------------+


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to