spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <>
Subject [jira] [Commented] (SPARK-18352) Parse normal, multi-line JSON files (not just JSON Lines)
Date Fri, 18 Nov 2016 02:36:58 GMT


Reynold Xin commented on SPARK-18352:

Actually just talked to [~marmbrus] and now I understand more how JSON reader works.

I'd say we always turn the top level array into multiple records, and then have only one option:
wholeFile. This same option can be used in json and text.

> Parse normal, multi-line JSON files (not just JSON Lines)
> ---------------------------------------------------------
>                 Key: SPARK-18352
>                 URL:
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>            Reporter: Reynold Xin
> Spark currently can only parse JSON files that are JSON lines, i.e. each record has an
entire line and records are separated by new line. In reality, a lot of users want to use
Spark to parse actual JSON files, and are surprised to learn that it doesn't do that.
> We can introduce a new mode (wholeJsonFile?) in which we don't split the files, and rather
stream through them to parse the JSON files.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message