Message: pyspark.sql.functions.asc has a workaround, see documentation for more info
Category: Warning
Description
This issue appears when the SMA detects a use of the pyspark.sql.functions.asc function, which has a workaround.
Scenarios
The pyspark.sql.functions.asc function takes either a column object or the name of the column as a string as its parameter. Both scenarios are not supported by Snowpark so this EWI is generated.
Scenario 1
Input
Below is an example of a use of the pyspark.sql.functions.asc function that takes a column object as parameter.
df.orderBy(asc(col))
Output
The SMA adds the EWI SPRKPY1033 to the output code to let you know that the asc function with a column object parameter is not directly supported by Snowpark, but it has a workaround.
#EWI: SPRKPY1033 => pyspark.sql.functions.asc has a workaround, see documentation for more infodf.orderBy(asc(col))
Below is an example of a use of the pyspark.sql.functions.asc function that takes the name of the column as parameter.
Output
The SMA adds the EWI SPRKPY1033 to the output code to let you know that the asc function with a column name parameter is not directly supported by Snowpark, but it has a workaround.