Repository: spark Updated Branches: refs/heads/branch-2.0 0b14b3f13 -> 7d187539e
[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 <yh...@databricks.com> Closes #13069 from yhuai/fixPython. (cherry picked from commit ba5487c061168627b27af2fa9610d53791fcc90d) Signed-off-by: Yin Huai <yh...@databricks.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/7d187539 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/7d187539 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/7d187539 Branch: refs/heads/branch-2.0 Commit: 7d187539edc3b44f555b2d85a45add9f044cad8b Parents: 0b14b3f Author: Yin Huai <yh...@databricks.com> Authored: Wed May 11 21:43:56 2016 -0700 Committer: Yin Huai <yh...@databricks.com> Committed: Wed May 11 21:44:28 2016 -0700 ---------------------------------------------------------------------- python/pyspark/sql/readwriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/7d187539/python/pyspark/sql/readwriter.py ---------------------------------------------------------------------- diff --git a/python/pyspark/sql/readwriter.py b/python/pyspark/sql/readwriter.py index 5cb1860..c98aef1 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) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org