ueshin opened a new pull request #23534: [SPARK-26610 ][PYTHON] Fix 
inconsistency between toJSON Method in Python and Scala.
URL: https://github.com/apache/spark/pull/23534
 
 
   ## What changes were proposed in this pull request?
   
   `DataFrame.toJSON()` in PySpark should return `DataFrame` of JSON string 
instead of `RDD`. The method in Scala/Java was changed to return `DataFrame` 
before, but the one in PySpark was not changed at that time.
   
   Also introduced a config 
`spark.sql.legacy.pyspark.dataframe.toJsonShouldReturnDataFrame` to restore the 
previous behavior.
   
   ## How was this patch tested?
   
   Added a test and existing tests.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]

Reply via email to