Commit dac4c3e
committed
Fix CAST alias handling to avoid test failures
- Remove CastExpr from parseAlias (explicit AS aliases)
- Only set alias on CastExpr in parseImplicitAlias when using :: operator syntax
- Function-style CAST() aliases go through AliasedExpr instead
ClickHouse's EXPLAIN AST doesn't show aliases on function-style CAST()
but does show them on :: operator syntax casts.1 parent da6c2c9 commit dac4c3e
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
200 | 209 | | |
201 | 210 | | |
202 | 211 | | |
| |||
1555 | 1564 | | |
1556 | 1565 | | |
1557 | 1566 | | |
1558 | | - | |
1559 | | - | |
1560 | | - | |
1561 | 1567 | | |
1562 | 1568 | | |
1563 | 1569 | | |
| |||
0 commit comments