SPRKPY1063
pyspark.sql.pandas.functions.pandas_udf
Message: pyspark.sql.pandas.functions.pandas_udf has workaround.
Category: Warning
Description
This issue appears when the tool detects the usage of pyspark.sql.pandas.functions.pandas_udf which has a workaround.
Scenario
Input
The pandas_udf function is used to create a user defined functions that works with large amounts of data.
Output
The SMA adds an EWI message indicating that the pandas_udf has a workaround.
Recommended fix
Specify explicitly the parameters types as a new parameter input_types
, and remove functionType
parameter if applies. Created function must be called inside a select statement.
Additional recommendations
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
Last updated