Skip to content

Commit 8dbf879

Browse files
authored
feat(cubesql): Do not run split re-aggregate for trivial push down to improve wide table queries (#7567)
1 parent 30cc798 commit 8dbf879

File tree

1 file changed

+6
-0
lines changed
  • rust/cubesql/cubesql/src/compile/rewrite/rules

1 file changed

+6
-0
lines changed

rust/cubesql/cubesql/src/compile/rewrite/rules/split.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5864,6 +5864,12 @@ impl SplitRules {
58645864
for alias_to_cube in
58655865
var_iter!(egraph[subst[alias_to_cube_var]], CubeScanAliasToCube).cloned()
58665866
{
5867+
if matches!(
5868+
egraph[subst[projection_expr_var]].data.trivial_push_down,
5869+
Some(0) | Some(1)
5870+
) {
5871+
continue;
5872+
}
58675873
// Replace outer projection columns with unqualified variants
58685874
if let Some(expr_name_to_alias) = expr_to_alias
58695875
.clone()

0 commit comments

Comments
 (0)