SPRKSCL1103
org.apache.spark.sql.SparkSession.builder
This issue code has been deprecated
Message: SparkBuilder method is not supported method name
Category: Conversion Error
Description
This issue appears when the SMA detects a method that is not supported by Snowflake in the SparkBuilder method chaining. Therefore, it might affects the migration of the reader statement.
The following are the not supported SparkBuilder methods:
master
appName
enableHiveSupport
withExtensions
Scenario
Input
Below is an example of a SparkBuilder method chaining with many methods are not supported by Snowflake.
Output
The SMA adds the EWI SPRKSCL1103
to the output code to let you know that master, appName and enableHiveSupport methods are not supported by Snowpark. Then, it might affects the migration of the Spark Session statement.
Recommended fix
To create the session is required 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