SPRKSCL1111
org.apache.spark.sql.types.DataTypes.CreateDecimalType
This issue code has been deprecated
Message: CreateDecimalType is not supported.
Category: Conversion error.
Description
This issue appears when the SMA detects a usage org.apache.spark.sql.types.DataTypes.CreateDecimalType function.
Scenario
Input
Below is an example of usage of org.apache.spark.sql.types.DataTypes.CreateDecimalType function.
Output
The SMA adds the EWI SPRKSCL1111
to the output code to let you know that CreateDecimalType function is not supported by Snowpark.
Recommended fix
There is not a recommended fix yet.
Message: Spark Session builder option is not supported.
Category: Conversion Error.
Description
This issue appears when the SMA detects a use of the org.apache.spark.sql.SparkSession.Builder.config function, which is setting an option of the Spark Session and it is not supported by Snowpark.
Scenario
Input
Below is an example of the org.apache.spark.sql.SparkSession.Builder.config
function used to set an option in the Spark Session.
Output
The SMA adds the EWI SPRKSCL1104
to the output code to let you know config method is not supported by Snowpark. Then, it is not possible to set options in the Spark Session via config function and it might affects the migration of the Spark Session statement.
Recommended fix
To create the session is require to add the proper Snowflake Snowpark configuration.
In this example a configs variable is used.
Also is recommended the use of a configFile (profile.properties) with the connection information:
And with the Session.builder.configFile
the session can be created:
Additional recommendations
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
Last updated