You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:20:10 UTC

[jira] [Updated] (SPARK-13155) add runtime null check when convert catalyst array to external array

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

Hyukjin Kwon updated SPARK-13155:
---------------------------------
    Labels: bulk-closed  (was: )

> add runtime null check when convert catalyst array to external array
> --------------------------------------------------------------------
>
>                 Key: SPARK-13155
>                 URL: https://issues.apache.org/jira/browse/SPARK-13155
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Wenchen Fan
>            Priority: Major
>              Labels: bulk-closed
>
> {code}
> scala> Seq(("a", Seq(null, new Integer(1)))).toDS().as[(String, Array[Int])].collect()
> res5: Array[(String, Array[Int])] = Array((a,Array(0, 1)))
> {code}
> This is wrong, we should throw exception for this case



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