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

Kazuaki Ishizaki commented on SPARK-19741:
------------------------------------------

Would it be possible to attache a pair of the error message and stack trace?

> 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
>
> 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
(v6.3.15#6346)

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

Reply via email to