[
https://issues.apache.org/jira/browse/SPARK-26151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16696275#comment-16696275
]
Apache Spark commented on SPARK-26151:
--------------------------------------
User 'MaxGekk' has created a pull request for this issue:
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
> Priority: Minor
>
> 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: [email protected]
For additional commands, e-mail: [email protected]