Skip to content

Commit

Permalink
[WIP move and split] fix(cubesql): Allow aggregation pushdown only to…
Browse files Browse the repository at this point in the history
… unlimited CubeScan
  • Loading branch information
mcheshkov committed Nov 7, 2024
1 parent 873c016 commit 15e26c8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions rust/cubesql/cubesql/src/compile/rewrite/rules/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,11 @@ impl RewriteRules for MemberRules {
"?old_members",
"?filters",
"?orders",
"?limit",
"?offset",
// If CubeScan already have limit and offset ot would be incorrect to push aggregation into it
// Aggregate(CubeScan(limit, offset)) would run aggregation over limited rows
// CubeScan(aggregation, limit, offset) would return limited groups
"CubeScanLimit:None",
"CubeScanOffset:None",
"?split",
"?can_pushdown_join",
"CubeScanWrapped:false",
Expand All @@ -161,8 +164,8 @@ impl RewriteRules for MemberRules {
),
"?filters",
"?orders",
"?limit",
"?offset",
"CubeScanLimit:None",
"CubeScanOffset:None",
"?split",
"?new_pushdown_join",
"CubeScanWrapped:false",
Expand Down

0 comments on commit 15e26c8

Please sign in to comment.