[
https://issues.apache.org/jira/browse/SPARK-38681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17539441#comment-17539441
]
Emil Ejbyfeldt commented on SPARK-38681:
----------------------------------------
While testing the spark 3.3.0 release candidate I noticed that this is actually
a regression from 3.2 that was introduced in #33205
> 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
> 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.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]