Commit 5cec95c
committed
sql: remove some EXPLAIN [ANALYZE] fields in non-VERBOSE mode
The output of `EXPLAIN [ANALYZE]` in non-`VERBOSE` mode is now more
succinct.
In the header above the query plan the following changes have been made:
1. "isolation level" is only shown if it is not "serializable".
2. "priority" is only shown if it is not "normal".
3. "quality of service" is only shown if it is not "regular".
4. "sql cpu time" is not shown.
5. "DistSQL network usage" is only show if it is greater than 0.
6. "maximum memory usage" is not shown.
7. "cumulative time spent in KV" is not shown.
8. "vectorized" is only shown if it is "false".
9. "buffered writes enabled" is not shown.
In each node of the query plan the following changes have been made:
1. "KV pairs read" is not shown.
2. "KV bytes read" is not shown.
3. "KV gRPC calls" is not shown.
4. "estimated max memory allocated" is not shown.
5. "estimated max sql temp disk usage" is not shown.
6. "actual row count" is directly above "estimated row count".
Here's an example of what `EXPLAIN ANALYZE` looked like before:
```
planning time: 243µs
execution time: 632µs
distribution: local
vectorized: true
plan type: generic, reused
cumulative time spent in KV: 331µs
maximum memory usage: 20 KiB
DistSQL network usage: 0 B (0 messages)
regions: us-east1
sql cpu time: 20µs
estimated RUs consumed: 0
isolation level: serializable
priority: normal
quality of service: regular
• scan
sql nodes: n1
kv nodes: n1
regions: us-east1
actual row count: 0
KV time: 331µs
KV rows decoded: 0
KV bytes read: 0 B
KV gRPC calls: 1
estimated max memory allocated: 20 KiB
sql cpu time: 20µs
missing stats
table: t@t_pkey
spans: [/0 - /0]
```
And here's the output with the same query after the changes in this
commit:
```
planning time: 325µs
execution time: 974µs
distribution: local
plan type: generic, reused
regions: us-east1
estimated RUs consumed: 0
• scan
sql nodes: n1
kv nodes: n1
regions: us-east1
KV time: 610µs
KV rows decoded: 0
sql cpu time: 29µs
actual row count: 0
missing stats
table: t@t_pkey
spans: [/0 - /0]
```
Release note (sql change): The output of `EXPLAIN [ANALYZE]` in
non-`VERBOSE` mode is now more succinct.1 parent 29de882 commit 5cec95c
File tree
114 files changed
+335
-1732
lines changed- pkg
- ccl/logictestccl/testdata/logic_test
- cli/clisqlshell
- kv/kvclient/kvstreamer
- sql
- logictest/testdata/logic_test
- opt/exec
- execbuilder/testdata
- explain
- pgwire
- schemachanger/testdata/end_to_end/alter_table_drop_constraint_fk
- sqlstats/persistedsqlstats/testdata
- tablemetadatacache/testdata
- ttl/ttljob
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
114 files changed
+335
-1732
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
180 | | - | |
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
| |||
263 | 261 | | |
264 | 262 | | |
265 | 263 | | |
266 | | - | |
267 | 264 | | |
268 | 265 | | |
269 | 266 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
70 | | - | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
129 | | - | |
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
| |||
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
157 | | - | |
158 | 154 | | |
159 | 155 | | |
160 | 156 | | |
| |||
184 | 180 | | |
185 | 181 | | |
186 | 182 | | |
187 | | - | |
188 | 183 | | |
189 | 184 | | |
190 | 185 | | |
| |||
219 | 214 | | |
220 | 215 | | |
221 | 216 | | |
222 | | - | |
223 | 217 | | |
224 | 218 | | |
225 | 219 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | | - | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| |||
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
109 | | - | |
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
| |||
128 | 125 | | |
129 | 126 | | |
130 | 127 | | |
131 | | - | |
132 | 128 | | |
133 | 129 | | |
134 | 130 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
269 | | - | |
270 | 268 | | |
271 | 269 | | |
272 | 270 | | |
| |||
352 | 350 | | |
353 | 351 | | |
354 | 352 | | |
355 | | - | |
356 | 353 | | |
357 | 354 | | |
358 | 355 | | |
| |||
386 | 383 | | |
387 | 384 | | |
388 | 385 | | |
389 | | - | |
390 | 386 | | |
391 | 387 | | |
392 | 388 | | |
| |||
442 | 438 | | |
443 | 439 | | |
444 | 440 | | |
445 | | - | |
446 | 441 | | |
447 | 442 | | |
448 | 443 | | |
| |||
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
578 | 580 | | |
| 581 | + | |
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
| |||
687 | 690 | | |
688 | 691 | | |
689 | 692 | | |
690 | | - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
691 | 696 | | |
| 697 | + | |
692 | 698 | | |
693 | 699 | | |
694 | 700 | | |
| |||
705 | 711 | | |
706 | 712 | | |
707 | 713 | | |
708 | | - | |
709 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
710 | 718 | | |
| 719 | + | |
711 | 720 | | |
712 | 721 | | |
713 | 722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1457 | 1457 | | |
1458 | 1458 | | |
1459 | 1459 | | |
1460 | | - | |
1461 | 1460 | | |
1462 | 1461 | | |
1463 | 1462 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | 260 | | |
262 | 261 | | |
263 | 262 | | |
| |||
735 | 734 | | |
736 | 735 | | |
737 | 736 | | |
738 | | - | |
739 | 737 | | |
740 | 738 | | |
741 | 739 | | |
| |||
805 | 803 | | |
806 | 804 | | |
807 | 805 | | |
808 | | - | |
809 | 806 | | |
810 | 807 | | |
811 | 808 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
| |||
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
232 | | - | |
233 | 231 | | |
234 | 232 | | |
235 | 233 | | |
| |||
269 | 267 | | |
270 | 268 | | |
271 | 269 | | |
272 | | - | |
273 | 270 | | |
274 | 271 | | |
275 | 272 | | |
| |||
313 | 310 | | |
314 | 311 | | |
315 | 312 | | |
316 | | - | |
317 | 313 | | |
318 | 314 | | |
319 | 315 | | |
| |||
347 | 343 | | |
348 | 344 | | |
349 | 345 | | |
350 | | - | |
351 | 346 | | |
352 | 347 | | |
353 | 348 | | |
| |||
0 commit comments