Hyukjin Kwon created SPARK-32897:
------------------------------------

             Summary: SparkSession.builder.getOrCreate should not show 
deprecation warning of SQLContext
                 Key: SPARK-32897
                 URL: https://issues.apache.org/jira/browse/SPARK-32897
             Project: Spark
          Issue Type: Bug
          Components: PySpark
    Affects Versions: 3.0.1, 2.4.7, 3.1.0
            Reporter: Hyukjin Kwon


In PySpark shell:

{code}
import warnings
from pyspark.sql import SparkSession, SQLContext
warnings.simplefilter('always', DeprecationWarning)
spark.stop()
SparkSession.builder.getOrCreate()
{code}

shows a deprecation warning from {{SQLContext}}

{code}
/.../spark/python/pyspark/sql/context.py:72: DeprecationWarning: Deprecated in 
3.0.0. Use SparkSession.builder.getOrCreate() instead.
  DeprecationWarning)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to