You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/03/29 12:48:00 UTC

[jira] [Assigned] (SPARK-38681) Support nested generic case classes

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

Apache Spark reassigned SPARK-38681:
------------------------------------

    Assignee: Apache Spark

> 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: Apache Spark
>            Priority: Major
>
> 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.1#820001)

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