SPRKPY1007
pyspark.sql.context.SQLContext is not required
Last updated
pyspark.sql.context.SQLContext is not required
Last updated
This issue code has been deprecated since
Message: pyspark.sql.context.SQLContext is not required
Category: Warning.
This issue appears when the tool detects the usage of , which is not required.
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.
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 or post an issue .