Builder
org.apache.spark.sql.SparkSession.builder => com.snowflake.snowpark.Session.builder
SparkSession builder transformation consists of the following:
Use the com.snowflake.snowpark.Session class
Read the configuration from the connection.properties file
Replace the method using create instead of getOrCreate
Builder methods that are not supported by snowflake will be registered as an issue:
master
appName
enableHiveSupport
withExtensions
option
config
For a better description of how to create a Session for Snowpark, please visit https://docs.snowflake.com/en/developer-guide/snowpark/scala/creating-session.html.
Input Code:
Output Code:
Last updated