You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hövell (Jira)" <ji...@apache.org> on 2023/03/06 19:40:00 UTC

[jira] [Created] (SPARK-42692) Implement Dataset.toJson

Herman van Hövell created SPARK-42692:
-----------------------------------------

             Summary: Implement Dataset.toJson
                 Key: SPARK-42692
                 URL: https://issues.apache.org/jira/browse/SPARK-42692
             Project: Spark
          Issue Type: New Feature
          Components: Connect
    Affects Versions: 3.4.0
            Reporter: Herman van Hövell


Implement Dataset.toJSON:

 
{code:java}
/**
* Returns the content of the Dataset as a Dataset of JSON strings.
* @since 3.4.0
*/
def toJSON: Dataset[String]{code}
 

Please see if we can implement this using {{{}project(to_json(struct(*))).as(StringEncoder){}}}.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org