Commit 85c27a9
authored
feat(cubesql): Support trivial casts in member pushdown (#9480)
This should allow pushing down expressions like `CAST(dimension AS TEXT) AS alias` into `CubeScan` as regular dimensions.
And that, in turn, should allow `__cubeJoinField` joins to see more `CubeScan`s
Supporting changes:
Remove unused rule for member pushdown from `AllMembers`
All matching happening with `CubeScanMembers` on top of actual members node, and this rule does not expect that
`member_name_to_expr` part of analysis can extract members from `CubeScanMembers(AllMembers)`, so there's no reason to keep this rule
Add explicit type in `var!` macro, to avoid type confusion.1 parent 39ff5e9 commit 85c27a9
File tree
5 files changed
+230
-185
lines changed- rust/cubesql/cubesql/src/compile
- rewrite
- rules
- test
- snapshots
5 files changed
+230
-185
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13429 | 13429 | | |
13430 | 13430 | | |
13431 | 13431 | | |
13432 | | - | |
| 13432 | + | |
13433 | 13433 | | |
13434 | 13434 | | |
13435 | 13435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
0 commit comments