forked from trinodb/trino
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable push partial aggregation though join
Make push partial aggregation CBO based. Enable it for cases where pushed aggregation has same grouping keys. Additionally, for queries like select sum(sales) from fact, date_dim where fact.date_id = date_dim.date_id group by date_dim.year partial aggregation on date_dim.year can be pushed below join with grouping key of "date_id", which can greatly reduce number of rows before join operator.
- Loading branch information
1 parent
dd1711c
commit ef267fc
Showing
59 changed files
with
1,770 additions
and
1,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
236 changes: 204 additions & 32 deletions
236
.../src/main/java/io/trino/sql/planner/iterative/rule/PushPartialAggregationThroughJoin.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
329 changes: 311 additions & 18 deletions
329
.../test/java/io/trino/sql/planner/iterative/rule/TestPushPartialAggregationThroughJoin.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.