SPRKPY1034
pyspark.sql.functions.desc
Last updated
pyspark.sql.functions.desc
Last updated
This issue code has been deprecated
Message: pyspark.sql.functions.desc has a workaround, see documentation for more info
Category: Warning
This issue appears when the SMA detects a use of the function, which has a workaround.
The pyspark.sql.functions.desc
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.
Input
Below is an example of a use of the pyspark.sql.functions.desc
function that takes a column object as parameter.
Output
The SMA adds the EWI SPRKPY1034
to the output code to let you know that the desc
function with a column object parameter is not directly supported by Snowpark, but it has a workaround.
Recommended fix
Input
Below is an example of a use of the pyspark.sql.functions.desc
function that takes the name of the column as parameter.
Output
The SMA adds the EWI SPRKPY1034
to the output code to let you know that the desc
function with a column name parameter is not directly supported by Snowpark, but it has a workaround.
Recommended fix
As a workaround, you can call the function from the column parameter.
As a workaround, you can convert the string parameter into a column object using the function and then call the function.
For more support, you can email us at or post an issue .