You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/11/22 21:58:00 UTC
[jira] [Assigned] (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 ]
Apache Spark reassigned SPARK-26151:
------------------------------------
Assignee: (was: Apache Spark)
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org