-
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
Deprecate invoke and invoke_no_args in favor of invoke_batch #13174
Deprecate invoke and invoke_no_args in favor of invoke_batch #13174
Conversation
This requires lots of changes, so let's do this incrementally. |
`invoke_batch` covers all needs, so let's deprecate and eventually remove the redundant variants.
04c8611
to
13e57b2
Compare
To be followed-up on.
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.
Thank you @findepi -- this looks great.
I think we could file a ticket (good first issue) for migrating the rest of the built in functions (removing the #allow_deprecated)
@@ -489,19 +493,40 @@ pub trait ScalarUDFImpl: Debug + Send + Sync { | |||
|
|||
/// Invoke the function with `args` and the number of rows, | |||
/// returning the appropriate result. | |||
/// | |||
/// The function will be invoked with the slice of [`ColumnarValue`] |
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.
❤️
please add a label |
…in-favor-of-invoke-batch-dd2bd8
Pushed a commit fixing logical conflict with #13130 that was merged recently. |
cc @comphead |
Looks good -- thanks @findepi |
invoke_batch
covers all needs, so let's deprecate and eventually remove the redundant variants.Deprecate ScalarUDF::invoke and invoke_no_args for invoke_batch #13179 deprecated functions in ScalarUDF, this PR deprecates equivalent functions in ScalarUDFImpl trait.
follows Fix functions with Volatility::Volatile and parameters #13001
follows Deprecate ScalarUDF::invoke and invoke_no_args for invoke_batch #13179