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

Feat/ffi scalar udf #1033

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

timsaucer
Copy link
Contributor

Which issue does this PR close?

This addresses part of #1017 - the scalar UDFs

Rationale for this change

This change enables users who have written DataFusion scalar UDFs to reuse them in datafusion-python with minimal overhead. They simply need to create a python object that exposes a PyCapsule that is the FFI_ScalarUDF.

What changes are included in this PR?

Adds a function in ScalarUDF to create from a FFI object.
Add a full example and integration test.

Are there any user-facing changes?

Existing interfaces are not changed, but additional ffi_udf function is added.

@timsaucer
Copy link
Contributor Author

Putting into draft because we need the upstream DataFusion repository to release version 46 before this can be enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant