SPRKSCL1171
org.apache.spark.sql.functions.split
Last updated
org.apache.spark.sql.functions.split
Last updated
Message: Snowpark does not support split functions with more than two parameters or containing regex pattern. See documentation for more info.
Category: Warning.
This issue appears when the SMA detects that has more than two parameters or containing regex pattern.
The split
function is used to separate the given column around matches of the given pattern. This Spark function has three overloads.
Input
Below is an example of the org.apache.spark.sql.functions.split
function that generates this EWI. In this example, the split
function has two parameters and the second argument is a string, not a regex pattern.
Output
The SMA adds the EWI SPRKSCL1171
to the output code to let you know that this function is not fully supported by Snowpark.
Recommended fix
Input
Below is an example of the org.apache.spark.sql.functions.split
function that generates this EWI. In this example, the split
function has two parameters and the second argument is a regex pattern.
Output
The SMA adds the EWI SPRKSCL1171
to the output code to let you know that this function is not fully supported by Snowpark because regex patterns are not supported by Snowflake.
Recommended fix
Since Snowflake does not supported regex patterns, try to replace the pattern by a not regex pattern string.
Input
Below is an example of the org.apache.spark.sql.functions.split
function that generates this EWI. In this example, the split
function has more than two parameters.
Output
The SMA adds the EWI SPRKSCL1171
to the output code to let you know that this function is not fully supported by Snowpark, because Snowflake does not have a split function with more than two parameters.
Recommended fix
Since Snowflake does not supported split function with more than two parameters, try to use the split function supported by Snowflake.
Snowpark has an equivalent function that receives a column object as a second argument. For that reason, the Spark overload that receives a string argument in the second argument, but it is not a regex pattern, can convert the string into a column object using the function as a workaround.
For more support, you can email us at or post an issue .