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:14:26 UTC

[jira] [Resolved] (SPARK-19741) ClassCastException when using Dataset with type containing value types

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

Hyukjin Kwon resolved SPARK-19741.
----------------------------------
    Resolution: Incomplete

> ClassCastException when using Dataset with type containing value types
> ----------------------------------------------------------------------
>
>                 Key: SPARK-19741
>                 URL: https://issues.apache.org/jira/browse/SPARK-19741
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core, SQL
>    Affects Versions: 2.1.0
>         Environment: JDK 8 on Ubuntu
> Scala 2.11.8
> Spark 2.1.0
>            Reporter: Lior Regev
>            Priority: Major
>              Labels: bulk-closed
>
> The following code reproduces the error
> {code}
> final case class Foo(id: Int) extends AnyVal
> final case class Bar(foo: Foo)
> val foo = Foo(5)
> val bar = Bar(foo)
> import spark.implicits._
> spark.sparkContext.parallelize(0 to 10).toDS().map(_ => bar).collect()
> {code}



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