zhengruifeng commented on code in PR #53849:
URL: https://github.com/apache/spark/pull/53849#discussion_r3301914873
##########
python/pyspark/sql/classic/dataframe.py:
##########
@@ -171,6 +171,11 @@ def stat(self) -> ParentDataFrameStatFunctions:
def toJSON(self, use_unicode: bool = True) -> "RDD[str]":
from pyspark.core.rdd import RDD
+ warnings.warn(
+ "The return type of DataFrame.toJSON will be changed from RDD to
DataFrame "
Review Comment:
we have a config spark.sql.pyspark.toJSON.returnDataFrame for it, but I
think we don't have an exact timeline now, maybe 5.0? @dbtsai @haoyangeng-db
--
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]