You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2022/05/24 17:12:00 UTC
[jira] [Updated] (SPARK-38681) Support nested generic case classes
[ https://issues.apache.org/jira/browse/SPARK-38681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk updated SPARK-38681:
-----------------------------
Fix Version/s: 3.3.0
(was: 3.3.1)
> Support nested generic case classes
> -----------------------------------
>
> Key: SPARK-38681
> URL: https://issues.apache.org/jira/browse/SPARK-38681
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.3.0, 3.4.0
> Reporter: Emil Ejbyfeldt
> Assignee: Emil Ejbyfeldt
> Priority: Major
> Fix For: 3.3.0
>
>
> Spark fail to derive schemas when using nested case class with generic parameters.
> Example
> {code:java}
> case class GenericData[A](
> genericField: A)
> {code}
> Will derive a correct schema for `GenericData[Int]` but if the classes are nested e.g.
> {code:java}
> case class NestedGeneric[T](
> generic: GenericData[T])
> {code}
> it will fail to derive a schema for `NestedGeneric[Int]`.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org