-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support Serde for ScalarUDF in Physical Expressions #9436
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9ab42e2
initial try
yyy1000 8d7c866
revert
yyy1000 ee9c36f
Merge branch 'main' into serde-phsyical
yyy1000 6ecfb11
Merge branch 'serde-phsyical' of https://github.com/yyy1000/arrow-dat…
yyy1000 6b154e0
stage commit
yyy1000 ecde242
Merge branch 'main' into serde-phsyical
yyy1000 b33656a
use ScalarFunctionDefinition to rewrite PhysicalExpr proto
yyy1000 1738529
cargo fmt
yyy1000 93d9750
feat : add test
yyy1000 376905b
fix bug
yyy1000 d8d1eb2
fix wrong delete code when resolve conflict
yyy1000 623e56c
Update datafusion/proto/src/physical_plan/to_proto.rs
yyy1000 1dfce4a
Update datafusion/proto/tests/cases/roundtrip_physical_plan.rs
yyy1000 767b53d
address the comment
yyy1000 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 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.
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 think the
fun
here can be aScalarFunctionDefinition
to get theScalarUDF
fromScalarFunctionExpr
?Also I searched the code base and found ScalarFunctionImplementation is only used for:
create_udf
which I think will be deprecated in the future given the newScalarUDFImpl
way.So I think
ScalarFunctionImplementation
will also be deleted in a day. 🤔 WDYT?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.
yeah, this should be
ScalarFunctionDefinition
here. I don't thinkcreate_udf
will be deprecated but we haveScalarUdfLegacyWrapper
to wrapScalarFunctionImplementation
and create aScalarUDFImpl
out of it. So the newScalarFunctionDefinition
would include anything that is represented as aScalarFunctionImplementation