You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2016/05/02 21:54:12 UTC

[jira] [Commented] (SPARK-12323) Don't assign default value for non-nullable columns of a Dataset

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

Yin Huai commented on SPARK-12323:
----------------------------------

[~lian cheng] We can resolve this one, right?

> Don't assign default value for non-nullable columns of a Dataset
> ----------------------------------------------------------------
>
>                 Key: SPARK-12323
>                 URL: https://issues.apache.org/jira/browse/SPARK-12323
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.0, 2.0.0
>            Reporter: Cheng Lian
>            Assignee: Cheng Lian
>
> For a field of a Dataset, if it's specified as non-nullable in the schema of the Dataset, we shouldn't assign default value for it if input data contain null. Instead, a runtime exception with nice error message should be thrown, and ask the user to use {{Option}} or nullable types (e.g., {{java.lang.Integer}} instead of {{scala.Int}}).



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