HyukjinKwon commented on a change in pull request #25684:
[SPARK-28980][CORE][SQL][STREAMING][MLLIB] Remove most items deprecated in
Spark 2.2.0 or earlier, for Spark 3
URL: https://github.com/apache/spark/pull/25684#discussion_r321565844
##########
File path: python/pyspark/sql/tests/test_context.py
##########
@@ -41,14 +41,13 @@ def setUpClass(cls):
cls.tempdir = tempfile.NamedTemporaryFile(delete=False)
cls.hive_available = True
try:
- cls.sc._jvm.org.apache.hadoop.hive.conf.HiveConf()
+ cls.spark = SparkSession.builder.enableHiveSupport().getOrCreate()
except py4j.protocol.Py4JError:
cls.hive_available = False
except TypeError:
cls.hive_available = False
os.unlink(cls.tempdir.name)
if cls.hive_available:
- cls.spark = HiveContext._createForTesting(cls.sc)
Review comment:
Ah, here's another occurrence. I think we can just replace this line to:
```python
cls.spark = SparkSession.builder.enableHiveSupport().getOrCreate()
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]