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 2016/07/09 14:25:11 UTC

[jira] [Commented] (SPARK-16462) Spark 2.0 CSV does not cast null values to certain data types properly

    [ https://issues.apache.org/jira/browse/SPARK-16462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15369103#comment-15369103 ] 

Apache Spark commented on SPARK-16462:
--------------------------------------

User 'lw-lin' has created a pull request for this issue:
https://github.com/apache/spark/pull/14118

> Spark 2.0 CSV does not cast null values to certain data types properly
> ----------------------------------------------------------------------
>
>                 Key: SPARK-16462
>                 URL: https://issues.apache.org/jira/browse/SPARK-16462
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Liwei Lin
>
> When casting given string datum to specified type, CSV should return {{null}} for nullable types if {{datum == options.nullValue}}.
> However, for certain data types like {{Boolean}}, {{TimestampType}}, {{DateType}}, CSV in 2.0 does not return {{null}} for some "empty" datum. This is a regression comparing to 1.6.



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

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