We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30cc798 commit 8dbf879Copy full SHA for 8dbf879
rust/cubesql/cubesql/src/compile/rewrite/rules/split.rs
@@ -5864,6 +5864,12 @@ impl SplitRules {
5864
for alias_to_cube in
5865
var_iter!(egraph[subst[alias_to_cube_var]], CubeScanAliasToCube).cloned()
5866
{
5867
+ if matches!(
5868
+ egraph[subst[projection_expr_var]].data.trivial_push_down,
5869
+ Some(0) | Some(1)
5870
+ ) {
5871
+ continue;
5872
+ }
5873
// Replace outer projection columns with unqualified variants
5874
if let Some(expr_name_to_alias) = expr_to_alias
5875
.clone()
0 commit comments