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 2015/12/10 08:13:11 UTC
[jira] [Resolved] (SPARK-12131) Cannot create ExpressionEncoder for
Array[T] where T is a nested class
[ https://issues.apache.org/jira/browse/SPARK-12131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheng Lian resolved SPARK-12131.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Resolved by https://github.com/apache/spark/pull/10239
> Cannot create ExpressionEncoder for Array[T] where T is a nested class
> ----------------------------------------------------------------------
>
> Key: SPARK-12131
> URL: https://issues.apache.org/jira/browse/SPARK-12131
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.6.0
> Reporter: Cheng Lian
> Assignee: Cheng Lian
> Fix For: 2.0.0
>
>
> The following snippet reproduces this issue under {{spark-shell}}:
> {noformat}
> import sqlContext._
> case class N(i: Int)
> case class T(a: Array[N])
> val ds = Seq(T(Array(N(1)))).toDS
> ds.show()
> {noformat}
> Note that, classes defined in Scala REPL are inherently nested.
--
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