File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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+---------------+-------------------------------------------------+
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Let's see how DataFusion runs a query that selects the top 5 watch lists for the
4040site ` 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
4444FROM ' hits.parquet'
4545WHERE starts_with(" URL" , ' http://domcheloveplanet.ru/' )
4646ORDER BY wid ASC , ip DESC
@@ -268,7 +268,7 @@ LIMIT 10;
268268We 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+ -- -------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ See [Reading Explain Plans](../explain-usage.md) for more information on how to
1181180 row(s) fetched.
119119Elapsed 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+ -- -------------+-------------------------------------------------------------------------------+
You can’t perform that action at this time.
0 commit comments