Is it possible to use the transforms library in a Python Function/UDF?
Hello!
No, you cannot use the transforms library directly within a Python Function or UDF in Foundry. The transforms library is specifically designed for defining data pipeline steps (Transforms) and is not supported within Functions or UDFs.
However, functions and UDFs have their APIs and are intended for different use cases, such as reusable logic or model serving, rather than orchestrating data pipeline steps. If you need to perform data transformations as part of a pipeline, use a Transform. If you require reusable logic, use a Function or UDF, but without the transforms library context.