SPRKPY1007
pyspark.sql.context.SQLContext is not required
This issue code has been deprecated since Spark Conversion Core Version 4.8.0
Message: pyspark.sql.context.SQLContext is not required
Category: Warning.
Description
This issue appears when the tool detects the usage of pyspark.sql.context.SQLContext, which is not required.
Scenario
Input
Here we have an example with different SparkContext overloads.
Output
The output code has commented the line for pyspark.SQLContext, and replaces the scenarios with a reference to a configuration. Note that the variables my_sc1 and my_sc2 that contains Spark properties may be not required or it will to be adapted to fix the code.
Additional recommendations
This is an unnecessary parameter being and is removed with a warning comment inserted into the source code. There should be no action from the user.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
Last updated