SPRKPY1049
pyspark.sql.session.SparkSession.sparkContext
This issue code has been deprecated since Spark Conversion Core Version 2.1.9
Message: pyspark.sql.session.SparkSession.sparkContext has a workaround
Category: Warning.
Description
This issue appears when the tool detects the usage of pyspark.sql.session.SparkSession.sparkContext which has a workaround.
Scenario
Input
Below is an example that creates a spark session and then uses the SparkContext
property to print the appName.
Output
The tool adds the EWI SPRKPY1049
indicating that a workaround can be implemented.
Recommended fix
SparkContext is not supported in SnowPark but you can access the methods and properties from SparkContext directly from the Session instance.
Additional recommendations
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
Last updated