diff options
author | Yin Huai <yhuai@databricks.com> | 2016-05-11 21:43:56 -0700 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2016-05-11 21:43:56 -0700 |
commit | ba5487c061168627b27af2fa9610d53791fcc90d (patch) | |
tree | 24774ef3601e27c8f3198da08b8c76bd6b5376bb /python/pyspark/sql/readwriter.py | |
parent | f036dd7ce727b40877337da66d687214786c4f14 (diff) | |
download | spark-ba5487c061168627b27af2fa9610d53791fcc90d.tar.gz spark-ba5487c061168627b27af2fa9610d53791fcc90d.tar.bz2 spark-ba5487c061168627b27af2fa9610d53791fcc90d.zip |
[SPARK-15072][SQL][PYSPARK][HOT-FIX] Remove SparkSession.withHiveSupport from readwrite.py
## What changes were proposed in this pull request?
Seems https://github.com/apache/spark/commit/db573fc743d12446dd0421fb45d00c2f541eaf9a did not remove withHiveSupport from readwrite.py
Author: Yin Huai <yhuai@databricks.com>
Closes #13069 from yhuai/fixPython.
Diffstat (limited to 'python/pyspark/sql/readwriter.py')
-rw-r--r-- | python/pyspark/sql/readwriter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/sql/readwriter.py b/python/pyspark/sql/readwriter.py index 5cb186016e..c98aef1a0e 100644 --- a/python/pyspark/sql/readwriter.py +++ b/python/pyspark/sql/readwriter.py @@ -875,7 +875,7 @@ def _test(): globs = pyspark.sql.readwriter.__dict__.copy() sc = SparkContext('local[4]', 'PythonTest') try: - spark = SparkSession.withHiveSupport(sc) + spark = SparkSession.builder.enableHiveSupport().getOrCreate() except py4j.protocol.Py4JError: spark = SparkSession(sc) |