SPRKPY1024
pyspark.sql.functions.log2
Last updated
pyspark.sql.functions.log2
Last updated
Message: pyspark.sql.functions.log2 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.
Input
Below is an example of a use of the pyspark.sql.functions.log2
function that generates this EWI. In this example, the log2
function is used to calculate the base-2 logarithm of the value column.
Output
The SMA adds the EWI SPRKPY1024
to the output code to let you know that this function is not directly supported by Snowpark, but it has a workaround.
Recommended fix
As a workaround, you can use the function by passing the literal value 2
as the base.
For more support, you can email us at or post an issue .