SPRKSCL1154
org.apache.spark.sql.functions.ceil has a workaround.
Description
This issue appears when the tool detects the usage of org.apache.spark.sql.functions.ceil which has a workaround.
Input code
val result = ceil("columnName")
Output code
/*EWI: SPRKSCL1154 => org.apache.spark.sql.functions.ceil has a workaround, see documentation for more info*/
val result = ceil("columnName")
Scenarios
This function has three overloads.
1. ceil(e: Column)
Action: does not need any change.
2. ceil(e: Column, scale: Column)
Action: does not need any change, because is not supported by Snowpark.
3. ceil(columnName: String)
Action: convert the param to Column type using the com.snowflake.snowpark.functions.col function. For example:
val result = ceil(col("columnName"))
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.