Skip to content

Conversation

timsaucer
Copy link
Member

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
Member 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
Member Author

Superseded by #1145

@timsaucer timsaucer closed this Jun 13, 2025
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.

2 participants