SPRKSCL1119
org.apache.spark.sql.column.endsWith has a workaround.
Description
This issue appears when the tool detects the usage of org.apache.spark.sql.column.endsWith which has a workaround.
Input code
val result = someColumn.endsWith("end")
Output code
/*EWI: SPRKSCL1119 => org.apache.spark.sql.column.endsWith has a workaround, see documentation for more info*/
val result = someColumn.endsWith("end")
Scenarios
This function has two overloads.
1. endsWith(other: Column)
Action: does not need any change.
2. endsWith(literal: String)
Action: convert the param to Column type using the com.snowflake.snowpark.functions.col function. For example:
val result = someColumn.endsWith(col("end"))
Recommendation
For more support, you can email us at [email protected]. If you have a contract for support with Snowflake, reach out to your sales engineer and they can direct your support needs.