You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Cheng Lian (JIRA)" <ji...@apache.org> on 2016/06/22 10:38:57 UTC

[jira] [Resolved] (SPARK-16097) Encoders.tuple should handle null object correctly

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

Cheng Lian resolved SPARK-16097.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request 13807
[https://github.com/apache/spark/pull/13807]

> Encoders.tuple should handle null object correctly
> --------------------------------------------------
>
>                 Key: SPARK-16097
>                 URL: https://issues.apache.org/jira/browse/SPARK-16097
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Wenchen Fan
>            Assignee: Wenchen Fan
>             Fix For: 2.0.0
>
>
> val enc = Encoders.tuple(Encoders.tuple(Encoders.STRING, Encoders.STRING), Encoders.STRING)
> val data = Seq((("a", "b"), "c"), (null, "d"))
> val ds = spark.createDataset(data)(enc)
> checkDataset(ds, (("a", "b"), "c"), (null, "d"))



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