-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Enforce explicit opt-in for WITHIN GROUP syntax in aggregate UDAFs
#18607
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
+180
−38
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
68cf7ae
feat: enforce WITHIN GROUP support for ordered-set aggregate function…
kosiew 915e3bb
feat: add documentation for WITHIN GROUP support in ordered-set aggre…
kosiew 1679849
feat: enforce restrictions on WITHIN GROUP support for order-insensit…
kosiew 4f1431a
Enforce WITHIN GROUP clause for ordered-set UDAFs
kosiew 5c33aa0
feat: add test case for rejection of WITHIN GROUP in non-ordered-set …
kosiew fcdce76
feat: update test case for WITHIN GROUP rejection in non-ordered-set …
kosiew 5eaaddc
feat: add rejection test for WITHIN GROUP clause in non-ordered-set U…
kosiew 9e71211
feat: add error handling for WITHIN GROUP clause in array_agg functio…
kosiew 45bd1da
Improve error handling in within_group_udaf functions
kosiew 62cc368
feat: update test case for percentile_cont UDAF to use c3 ordering in…
kosiew a2968ab
feat: add test for named argument behavior with WITHIN GROUP in perce…
kosiew 494142f
refactor: clean up imports and remove redundant use statements in sql…
kosiew 1811287
Refactor planner and improve readability
kosiew f79715a
refactor: introduce type alias WithinGroupExtraction to simplify retu…
kosiew 193c6fc
clippy fix
kosiew a58a27f
Move WithinGroupExtraction type alias closer to fn
kosiew 2c2ff39
refactor: clarify comments on UDAF WITHIN GROUP handling for better u…
kosiew 752c78c
refactor: simplify argument handling in extract_and_prepend_within_gr…
kosiew 333a3b8
tests(sqllogictest): remove unit tests duplicated by aggregate.slt (W…
kosiew 1265c4b
sql: avoid unstable inherent associated type by moving WithinGroupExt…
kosiew 566508b
Remove unused imports
kosiew c5dd922
cargo fmt
kosiew a28b463
docs: update upgrading guide for DataFusion 52.0.0 with explicit opt-…
kosiew 6e10ca1
docs: clarify usage of WITHIN GROUP clause in aggregate functions doc…
kosiew b7183de
docs: enhance documentation generator for WITHIN GROUP clause in aggr…
kosiew 2366a36
refactor: reorganize imports for clarity and consistency in function.rs
kosiew b11e66d
Merge branch 'main' into within-group-18109
kosiew 6a90e31
npx prettier
kosiew 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
Some comments aren't visible on the classic Files Changed page.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure adding these tests here are necessary; SLTs should be sufficient and I believe some of the tests added here are already in SLTs, e.g.
datafusion/datafusion/sqllogictest/test_files/aggregate.slt
Lines 174 to 179 in d57e215
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the tests that are already covered in slt.