-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant Aggregate when
DISTINCT
& GROUP BY
are in the sa…
…me query (#11781) * Delete docs.yaml * initialize eliminate_aggregate.rs rule * remove redundant prints * Add multiple group by expression handling. * rename eliminate_aggregate.rs as eliminate_distinct.rs implement as rewrite function * remove logic for distinct on since group by statement must exist in projection * format code * add eliminate_distinct rule to tests * simplify function add additional tests for not removing cases * fix child issue * format * fix docs * remove eliminate_distinct rule and make it a part of replace_distinct_aggregate * Update datafusion/common/src/functional_dependencies.rs Co-authored-by: Mehmet Ozan Kabak <[email protected]> * add comment and fix variable call * fix test cases as optimized plan * format code * simplify comments Co-authored-by: Mehmet Ozan Kabak <[email protected]> * do not replace redundant distincts with aggregate --------- Co-authored-by: metesynnada <[email protected]> Co-authored-by: Mustafa Akur <[email protected]> Co-authored-by: Mustafa Akur <[email protected]> Co-authored-by: Mert Akkaya <[email protected]> Co-authored-by: Mehmet Ozan Kabak <[email protected]>
- Loading branch information
1 parent
a4d41d6
commit c8e5996
Showing
4 changed files
with
119 additions
and
30 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
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