Commit 5effbea
committed
Fix FORMAT clause handling in EXPLAIN statement output
When EXPLAIN wraps a SELECT query with FORMAT clause, the FORMAT
identifier should be a child of the Explain node, not the inner
SelectWithUnionQuery. Updated explainExplainQuery to extract the
format from the inner SelectQuery and output it as a sibling.
Fixes 17 statements across 13 tests.1 parent a899fb6 commit 5effbea
File tree
14 files changed
+34
-58
lines changed- internal/explain
- parser/testdata
- 01470_explain
- 02271_fix_column_matcher_and_column_transformer
- 02421_exponential_join_rewrite_21557
- 02678_explain_pipeline_graph_with_projection
- 02704_storage_merge_explain_graph_crash
- 02707_skip_index_with_in
- 02780_final_streams_data_skipping_index
- 02788_fix_logical_error_in_sorting
- 03023_group_by_use_nulls_analyzer_crashes
- 03031_read_in_order_optimization_with_virtual_row_explain
- 03176_check_timeout_in_index_analysis
- 03289_explain_syntax_statistics
- 03611_point_in_polygon_key_condition_bug
14 files changed
+34
-58
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
617 | 632 | | |
618 | 633 | | |
619 | 634 | | |
620 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
621 | 640 | | |
622 | 641 | | |
623 | 642 | | |
| |||
629 | 648 | | |
630 | 649 | | |
631 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
632 | 654 | | |
633 | 655 | | |
634 | 656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 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 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 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: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
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