You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2026/02/15 19:26:01 UTC

[jira] [Closed] (SPARK-44910) Encoders.bean does not support superclasses with generic type arguments

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

Dongjoon Hyun closed SPARK-44910.
---------------------------------

> Encoders.bean does not support superclasses with generic type arguments
> -----------------------------------------------------------------------
>
>                 Key: SPARK-44910
>                 URL: https://issues.apache.org/jira/browse/SPARK-44910
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.4.1, 3.5.0, 4.0.0
>            Reporter: Giambattista Bloisi
>            Assignee: Giambattista Bloisi
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.2, 3.5.1, 4.0.0
>
>
> As per SPARK-44634 another unsupported feature of bean encoder is when the superclass of the bean has generic type arguments. For example:
> {code:java}
> class JavaBeanWithGenericsA<T> {
>     public T getPropertyA() {
>         return null;
>     }
>     public void setPropertyA(T a) {
>     }
> }
> class JavaBeanWithGenericBase extends JavaBeanWithGenericsA<String> {
> }
> Encoders.bean(JavaBeanWithGenericBase.class); // Exception
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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