-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Support WITHIN GROUP syntax to standardize certain existing aggregate functions #13511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jayzhan211
merged 44 commits into
apache:main
from
Garamda:support_within_group_for_existing_aggregate_functions
Apr 23, 2025
Merged
Changes from 9 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
a9b901a
Add within group variable to aggregate function and arguments
Garamda 0918000
Merge branch 'main' into support_within_group_for_existing_aggregate_…
Garamda 070a96b
Support within group and disable null handling for ordered set aggreg…
Garamda 3fd92fd
Refactored function to match updated signature
Garamda 4082a78
Modify proto to support within group clause
Garamda c3be3c6
Modify physical planner and accumulator to support ordered set aggreg…
Garamda 9fd05a3
Support session management for ordered set aggregate functions
Garamda 8518a59
Align code, tests, and examples with changes to aggregate function logic
Garamda 79669d9
Fix typo in existing comments
Garamda 597f4d7
Enhance test
Garamda d3b483c
Merge branch 'main' into support_within_group_for_existing_aggregate_…
Garamda a827c9d
Fix bug : handle missing within_group when applying children tree node
Garamda 23bdf70
Change the signature of approx_percentile_cont for consistency
Garamda 97d96ca
Add missing within_group for expr display
Garamda 1b61b5b
Handle edge case when over and within group clause are used together
Garamda d0fdde3
Apply clippy advice: avoids too many arguments
Garamda 3c8bce3
Add new test cases using descending order
Garamda be99a35
Apply cargo fmt
Garamda f9aa1fc
Revert unintended submodule changes
Garamda d5f0b62
Apply prettier guidance
Garamda d7f2f59
Apply doc guidance by update_function_doc.sh
Garamda 7ef2139
Merge branch 'main' into support_within_group_for_existing_aggregate_…
Garamda 91565b3
Rollback WITHIN GROUP and related logic after converting it into expr
Garamda d482bff
Rollback ordered set aggregate functions from session to save same in…
Garamda 005a27c
Convert within group to order by when converting sql to expr
Garamda 1179bc4
Rollback within group from proto
Garamda e5fc1a4
Utilize within group as order by in functions-aggregate
Garamda cf4faad
Apply clippy
Garamda fc7d2bc
Merge branch 'main' into support_within_group_for_existing_aggregate_…
Garamda 5469e39
Convert order by to within group
Garamda d96b667
Apply cargo fmt
Garamda 293d33e
Remove plain line breaks
Garamda ecdb21b
Remove duplicated column arg in schema name
Garamda d65420e
Refactor boolean functions to just return primitive type
Garamda b6d426a
Make within group necessary in the signature of existing ordered set …
Garamda 4b0c52f
Apply cargo fmt
Garamda 36a732d
Support a single ordering expression in the signature
Garamda 8d6db85
Apply cargo fmt
Garamda db0355a
Add dataframe function test cases to verify descending ordering
Garamda 37b783e
Apply cargo fmt
Garamda 124d8c5
Apply code reviews
Garamda 3259c95
Update error msg in test as corresponding code changed
Garamda 57c4281
Merge branch 'main' of github.com:apache/datafusion into support_with…
jayzhan211 40d7055
fix
jayzhan211 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.