HyukjinKwon commented on a change in pull request #34606:
URL: https://github.com/apache/spark/pull/34606#discussion_r749783512
##########
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:
Hm .. I think it might need a bigger scope of change.
<img width="759" alt="Screen Shot 2021-11-16 at 9 30 24 AM"
src="https://user-images.githubusercontent.com/6477701/141874067-2273d1c5-a212-4f69-9e0c-dc55258b95c3.png">
I think the constructor currently expects SQLContext ..
--
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]