-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
DISTINCT ON
from Postgres (#7981)
* Initial DISTINT ON implementation * Add a couple more tests * Add comments in the replace_distinct_aggregate optimizer * Run cargo fmt to fix CI * Make DISTINCT ON planning more robust to support arbitrary selection expressions * Add DISTINCT ON + join SLT * Handle no DISTINCT ON expressions and extend the docs for the replace_distinct_aggregate optimizer * Remove misleading DISTINCT ON SLT comment * Add an EXPLAIN SLT for a basic DISTINCT ON query * Revise comment in CommonSubexprEliminate::try_optimize_aggregate * Implement qualified expression alias and extend test coverage * Update datafusion/proto/proto/datafusion.proto Co-authored-by: Jonah Gao <[email protected]> * Accompanying generated changes to alias proto tag revision * Remove obsolete comment --------- Co-authored-by: Jonah Gao <[email protected]>
- Loading branch information
Showing
25 changed files
with
879 additions
and
99 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
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.