nchammas commented on a change in pull request #34606:
URL: https://github.com/apache/spark/pull/34606#discussion_r750368365
##########
File path: python/pyspark/ml/common.py
##########
@@ -96,15 +96,15 @@ def _java2py(sc, r, encoding="bytes"):
return RDD(jrdd, sc)
if clsName == "Dataset":
- return DataFrame(r, SQLContext.getOrCreate(sc))
+ return DataFrame(r, SparkSession(sc))
Review comment:
Hmm, I didn't look too deeply since my changed worked locally and passed
tests. But I'll look into this.
Shall I also [update
MLlib](https://github.com/apache/spark/pull/34606#issuecomment-969144498)?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]