-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add Extension Type / Metadata support for Scalar UDFs #15646
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
timsaucer
merged 26 commits into
apache:main
from
timsaucer:feat/physical_expr_evaluate_metadata
Apr 29, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
39d1a72
Add in plumbing to pass around metadata for physical expressions
timsaucer 9bcd4b5
Adding argument metadata to scalar argument struct
timsaucer ea561b0
Since everywhere we use this we immediately clone, go ahead and retur…
timsaucer 8daa356
Cargo fmt
timsaucer a2d5f9e
Benchmarks required args_metadata in tests
timsaucer a3514de
Clippy warnings
timsaucer 4e3b7bc
Switching over to passing Field around instead of metadata so we can …
timsaucer 281a83e
Switching return_type_from_args to return_field_from_args
timsaucer 03ddfe7
Updates to unit tests for switching to field instead of data_type
timsaucer 58933df
Resolve unit test issues
timsaucer 6924e4e
Update after rebase on main
timsaucer 68f4356
GetFieldFunc should return the field it finds instead of creating a n…
timsaucer d6af7e3
Get metadata from scalar functions
timsaucer 07b7ec8
Change expr_schema to use to_field primarily instead of individual ca…
timsaucer caad021
Scalar function arguments should take return field instead of return …
timsaucer 9aa5227
subquery should just get the field from below and not lose potential …
timsaucer 2fab67b
Update comment
timsaucer 02d6f47
Remove output_field now that we've determined it using return_field_f…
timsaucer 871c382
Change name to_field to field_from_column to be more consistent with …
timsaucer c439224
Minor moving around of the explicit lifetimes in the struct definition
timsaucer d69deee
Change physical expression to require to output a field which require…
timsaucer 317ed22
Change name from output_field to return_field to be more consistent
timsaucer 6481b3e
Update migration guide for DF48 with user defined functions
timsaucer ef6c58c
Merge branch 'main' into feat/physical_expr_evaluate_metadata
timsaucer cddb52a
Whitespace
timsaucer e4d5846
Docstring correction
timsaucer 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
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.
It seems like we could (perhaps as a follow on ticket) deprecate all the other methods on
ExprSchema
asto_field
supercedes all of them. It would make a good first issue ticketThere 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.
#15798