You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(udf): name property reports FFI capsule name, not the ignored ctor arg
Previously `ScalarUDF.name`, `AggregateUDF.name`, and `WindowUDF.name`
cached the `name` argument passed to `__init__`. The FFI-capsule branch
discards that argument and constructs from the capsule directly, so the
cached value was wrong — e.g. `udf(IsNullUDF()).name` returned
`"<class 'datafusion_ffi_example.IsNullUDF'>"` (the factory-synthesized
string from `from_pycapsule`) rather than the capsule's own
`my_custom_is_null`.
Expose a `name` getter on `PyScalarUDF`, `PyAggregateUDF`, `PyWindowUDF`
that forwards to the underlying `UDF::name()`, and have each Python
property delegate to it. Same path for Python-defined and
FFI-imported UDFs, no stale cache.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments