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

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

Emil Ejbyfeldt created SPARK-38681:
--------------------------------------

             Summary: 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


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