You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/01/10 03:21:00 UTC
[jira] [Resolved] (SPARK-26581) Spark Dataset write JSON with
Multiline
[ https://issues.apache.org/jira/browse/SPARK-26581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-26581.
----------------------------------
Resolution: Invalid
Also, multiline concept is not applicable to write side. Let's also ask questions to Spark mailing list before filing an issue.
> Spark Dataset write JSON with Multiline
> ---------------------------------------
>
> Key: SPARK-26581
> URL: https://issues.apache.org/jira/browse/SPARK-26581
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.3.0
> Reporter: Anil
> Priority: Major
>
> Hi,
> Spark currently can only write JSON file for single node, if i have multiple lines or nodes, spark writes nodes with curly braces " \{ }" without comma "," in between both the nodes and there is no square brackets at start and end of the file. How to achive this. i am trying to write the JSON file like:.
> ds.write().format("JSON").option("multiline","true").save(path);
> please help on this.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org