Still on daft.udf? (Legacy User Defined Functions)
You're going to want to get that migrated.
Just point Claude at our migration guide!
For stateless functions -> daft.func
For stateful classes -> daft.cls
The swap:
> daft.udf(return\_dtype=...) becomes daft.func.batch(return_dtype=...)
> Class UDFs become daft.cls + daft.method
> Init args move to the decorator or
init
The new API is more fully featured:
> async UDFs
> generators
> Pydantic types
> stateful classes with GPU allocation.
Seriously though, check out the migration guide on the @daftengine docs:
https://docs.daft.ai/en/stable/custom-code/migration/