Skip to content

Commit 4417d5c

Browse files
authored
doc: fix indent format explain (#16085)
* doc: fix indent format explain * update
1 parent 577c424 commit 4417d5c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/source/library-user-guide/query-optimizer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Looking at the `EXPLAIN` output we can see that the optimizer has effectively re
193193
`3 as "1 + 2"`:
194194

195195
```text
196-
> explain select 1 + 2;
196+
> explain format indent select 1 + 2;
197197
+---------------+-------------------------------------------------+
198198
| plan_type | plan |
199199
+---------------+-------------------------------------------------+

docs/source/user-guide/explain-usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Let's see how DataFusion runs a query that selects the top 5 watch lists for the
4040
site `http://domcheloveplanet.ru/`:
4141

4242
```sql
43-
EXPLAIN SELECT "WatchID" AS wid, "hits.parquet"."ClientIP" AS ip
43+
EXPLAIN FORMAT INDENT SELECT "WatchID" AS wid, "hits.parquet"."ClientIP" AS ip
4444
FROM 'hits.parquet'
4545
WHERE starts_with("URL", 'http://domcheloveplanet.ru/')
4646
ORDER BY wid ASC, ip DESC
@@ -268,7 +268,7 @@ LIMIT 10;
268268
We can again see the query plan by using `EXPLAIN`:
269269

270270
```sql
271-
> EXPLAIN SELECT "UserID", COUNT(*) FROM 'hits.parquet' GROUP BY "UserID" ORDER BY COUNT(*) DESC LIMIT 10;
271+
> EXPLAIN FORMAT INDENT SELECT "UserID", COUNT(*) FROM 'hits.parquet' GROUP BY "UserID" ORDER BY COUNT(*) DESC LIMIT 10;
272272
+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
273273
| plan_type | plan |
274274
+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

docs/source/user-guide/sql/explain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ See [Reading Explain Plans](../explain-usage.md) for more information on how to
118118
0 row(s) fetched.
119119
Elapsed 0.004 seconds.
120120

121-
> EXPLAIN SELECT SUM(x) FROM t GROUP BY b;
121+
> EXPLAIN FORMAT INDENT SELECT SUM(x) FROM t GROUP BY b;
122122
+---------------+-------------------------------------------------------------------------------+
123123
| plan_type | plan |
124124
+---------------+-------------------------------------------------------------------------------+

0 commit comments

Comments
 (0)