[ 
https://issues.apache.org/jira/browse/SPARK-13764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenchen Fan updated SPARK-13764:
--------------------------------
    Assignee: Hyukjin Kwon

> Parse modes in JSON data source
> -------------------------------
>
>                 Key: SPARK-13764
>                 URL: https://issues.apache.org/jira/browse/SPARK-13764
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> Currently, JSON data source just fails to read if some JSON documents are 
> malformed.
> {{PERMISSIVE}} : sets other fields to {{null}} when it meets a corrupted  
> record and puts the malformed string into a new field configured by 
> {{spark.sql.columnNameOfCorruptRecord}}. When a schema is set by user, it 
> sets {{null}} for extra fields.
> {{DROPMALFORMED}} : ignores the whole corrupted records.
> {{FAILFAST}}: throws an exception when it meets corrupted records.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to