-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Convert nth_value to UDAF
#11287
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
Merged
Convert nth_value to UDAF
#11287
Changes from 32 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
bef3ede
Copies `NthValueAccumulator` to `functions-aggregate`
jcsherin c684040
Partial implementation of `AggregateUDFImpl`
jcsherin 165c4f5
Implements `accumulator` method
jcsherin e82f055
Retains existing comments verbatim
jcsherin a45349f
Removes unnecessary path prefix
jcsherin 9c9a6c4
Implements `reverse_expr` method
jcsherin 60370ca
Adds `nullable` field to `NthValue`
jcsherin 3631812
Revert to existing name
jcsherin 98039e5
Implements `state_fields` method
jcsherin 415d9db
Removes `nth_value` from `physical-expr`
jcsherin d9ebdbe
Adds default
jcsherin c4e5417
Exports `nth_value`
jcsherin f74459b
Fixes build error in physical plan roundtrip test
jcsherin 0fc98f1
Minor: formatting
jcsherin 02c01fc
Parses `N` from input expression
jcsherin 729d9c5
Fixes build error by using `nth_value_udaf`
jcsherin 40b4607
Fixes `reverse_expr` by passing correct `N`
jcsherin a86ca1f
Update plan with lowercase UDF name
jcsherin 02f4497
Updates error message for incorrect no. of arguments
jcsherin 2e90028
Fixes nullable "item" in `state_fields`
jcsherin 972f118
Minor: fix formatting after resolving conflicts
jcsherin cf974c0
Updates multiple existing plans with lowercase name
jcsherin 427a8bb
Implements `retract_batch` for window aggregations
jcsherin 488881f
Fixes: regex mismatch for error message in CI
jcsherin 91bacb7
Revert "Updates multiple existing plans with lowercase name"
jcsherin 97e8955
Revert "Implements `retract_batch` for window aggregations"
jcsherin 4634641
Fixes: use builtin window function instead of udaf
jcsherin 7b57cce
Revert "Updates error message for incorrect no. of arguments"
jcsherin 20a804b
Refactor: renames field and method
jcsherin cc08872
Removes hack for nullability
jcsherin 35b0c0d
Minor: refactors `reverse_expr`
jcsherin f6215d9
Minor: removes unncessary path prefix
jcsherin 5874f0f
Minor: cleanup arguments for creating aggregate expr
jcsherin 6ce6679
Refactor: extracts `merge_ordered_arrays` to `physical-expr-common`
jcsherin 5ea5421
Minor: adds todo for configuring nullability
jcsherin d0a3c3d
Retrigger CI
jcsherin e3a8026
Merge branch 'main' into convert-udaf-nth-value
jcsherin 1990bad
Merge remote-tracking branch 'apache/main' into convert-udaf-nth-value
alamb 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
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.
this list is quite close to empty 🤞