SPRKSCL1122
org.apache.spark.sql.functions.corr
Message: org.apache.spark.sql.functions.corr has a workaround, see documentation for more info
Category: Warning
Description
This issue appears when the SMA detects a use of the org.apache.spark.sql.functions.corr function, which has a workaround.
Scenario
Input
Below is an example of the org.apache.spark.sql.functions.corr
function, first used with column names as the arguments and then with column objects.
Output
The SMA adds the EWI SPRKSCL1122
to the output code to let you know that this function is not fully supported by Snowpark, but it has a workaround.
Recommended fix
Snowpark has an equivalent corr function that receives two column objects as arguments. For that reason, the Spark overload that receives column objects as arguments is directly supported by Snowpark and does not require any changes.
For the overload that receives two string arguments, you can convert the strings into column objects using the com.snowflake.snowpark.functions.col function as a workaround.
Additional recommendations
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
Last updated