Skip to content
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

fix: mark ScalarUDFImpl::invoke_batch as deprecated #15049

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Blizzara
Copy link
Contributor

@Blizzara Blizzara commented Mar 6, 2025

Which issue does this PR close?

See #14123 (comment)

Rationale for this change

People should use invoke_with_args instead. Calling invoke_batch for any DF-builtin function will fail at runtime with something like Function X does not implement invoke but called

We should also consider just removing the old functions (invoke_batch, invoke, invoke_no_args), to clear up the trait.

What changes are included in this PR?

Mark invoke_batch as deprecated. It was already called so in the docstring, but the compiler doesn't read those.

Are these changes tested?

Existing tests

Are there any user-facing changes?

New deprecation

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Mar 6, 2025
@Blizzara Blizzara mentioned this pull request Mar 6, 2025
26 tasks
@github-actions github-actions bot added the functions Changes to functions implementation label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functions Changes to functions implementation logical-expr Logical plan and expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant