Commit 3956e3f
Preserve tuple SpacedCommas flag in EXPLAIN AST output
Track whether tuples have spaces after commas in the source code and
preserve this formatting when outputting EXPLAIN AST. This is needed
for Ring/Polygon/MultiPolygon type literals to match ClickHouse output.
Changes:
- Add formatTupleAsStringFromLiteral to respect SpacedCommas flag
- Track spacedCommas when parsing tuples in parseGroupedOrTuple
- Fixes 00727_concat/stmt44 and 02935_format_with_arbitrary_types/stmt44
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent a874217 commit 3956e3f
File tree
4 files changed
+33
-15
lines changed- internal/explain
- parser
- testdata
- 00727_concat
- 02935_format_with_arbitrary_types
4 files changed
+33
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
662 | 680 | | |
663 | 681 | | |
664 | 682 | | |
| |||
707 | 725 | | |
708 | 726 | | |
709 | 727 | | |
710 | | - | |
| 728 | + | |
711 | 729 | | |
712 | 730 | | |
713 | 731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1238 | 1238 | | |
1239 | 1239 | | |
1240 | 1240 | | |
| 1241 | + | |
1241 | 1242 | | |
| 1243 | + | |
1242 | 1244 | | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
1243 | 1250 | | |
1244 | 1251 | | |
1245 | 1252 | | |
| |||
1248 | 1255 | | |
1249 | 1256 | | |
1250 | 1257 | | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
1254 | 1262 | | |
1255 | 1263 | | |
1256 | 1264 | | |
| |||
| 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