SPRKPY1049
pyspark.sql.session.SparkSession.sparkContext
Last updated
pyspark.sql.session.SparkSession.sparkContext
Last updated
This issue code has been deprecated since
Message: pyspark.sql.session.SparkSession.sparkContext has a workaround
Category: Warning.
This issue appears when the tool detects the usage of which has a workaround.
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.
For more support, you can email us at or post an issue .