Skip to content

Feat/ffi scalar udf #1033

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 9 commits into from
Closed

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.

@crystalxyz
Copy link
Contributor

This could be reviewed now!

@timsaucer
Copy link
Contributor Author

Superseded by #1145

@timsaucer timsaucer closed this Jun 13, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants