You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2018/12/03 10:27:00 UTC

[jira] [Resolved] (SPARK-26151) Return partial results for bad CSV records

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

Wenchen Fan resolved SPARK-26151.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 23120
[https://github.com/apache/spark/pull/23120]

> Return partial results for bad CSV records
> ------------------------------------------
>
>                 Key: SPARK-26151
>                 URL: https://issues.apache.org/jira/browse/SPARK-26151
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> Currently, CSV datasource and from_csv returns a rows with all nulls for bad CSV records in the PERMISSIVE mode even some of fields were parsed and converted successfully. For example, the CSV input:
> {code}
> 0,2013-111-11 12:13:14
> 1,1983-08-04
> {code}
> for the first line returned row is Row(null, null) but value 0 can be parsed and converted successfully. And result can be Row(0, null). This ticket aims to change implementation of UnivocityParser and return the partial result.



--
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