Commit a899fb6
committed
Add GROUPING SETS support for EXPLAIN AST output
Each grouping set element in GROUPING SETS clause needs to be wrapped
in an ExpressionList in the EXPLAIN output. Added GroupingSets flag to
SelectQuery AST to track when GROUPING SETS is used, and updated the
explain code to output the wrapper when needed.
Fixes 66 statements across 25 tests.1 parent 4e5e254 commit a899fb6
File tree
28 files changed
+31
-135
lines changed- ast
- internal/explain
- parser
- testdata
- 01883_grouping_sets_crash
- 01883_with_grouping_sets
- 02293_grouping_function
- 02343_group_by_use_nulls_distributed
- 02343_group_by_use_nulls
- 02481_analyzer_optimize_grouping_sets_keys
- 02521_grouping_sets_plus_memory_efficient_aggr
- 02534_analyzer_grouping_function
- 02535_analyzer_group_by_use_nulls
- 02541_analyzer_grouping_sets_crash_fix
- 02579_fill_empty_chunk_analyzer
- 02579_fill_empty_chunk
- 02835_fuzz_remove_redundant_sorting
- 02917_transform_tsan
- 02932_group_by_null_fuzzer
- 02962_analyzer_resolve_group_by_on_shards
- 02992_analyzer_group_by_const
- 03013_group_by_use_nulls_with_materialize_and_analyzer
- 03023_group_by_use_nulls_analyzer_crashes
- 03150_grouping_sets_use_nulls_pushdown
- 03231_dynamic_variant_in_order_by_group_by
- 03259_grouping_sets_aliases
- 03358_block_structure_match
- 03392_crash_group_by_use_nulls
- 03749_table_function_argument_asterisk
28 files changed
+31
-135
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
104 | 110 | | |
105 | 111 | | |
106 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| 537 | + | |
537 | 538 | | |
538 | 539 | | |
539 | 540 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 3 | + | |
12 | 4 | | |
13 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments