Commit 7bf233f
Eliminate unary plus from AST (no-op in ClickHouse) (#122)
In ClickHouse, unary plus (+x) is a no-op and doesn't appear in the
EXPLAIN AST output. Updated parseUnaryPlus to simply return the
operand without wrapping it in a UnaryExpr.
This fixes parsing of expressions like (+c0.2) which should produce
just tupleElement, not Function + wrapping tupleElement.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 96db89a commit 7bf233f
File tree
5 files changed
+7
-27
lines changed- parser
- testdata
- 01764_collapsing_merge_adaptive_granularity
- 03207_json_read_subcolumns_1_memory
- 03207_json_read_subcolumns_2_memory
- 03720_file_engine_second_crash
5 files changed
+7
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
1177 | 1173 | | |
1178 | 1174 | | |
1179 | 1175 | | |
| |||
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 & 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