Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-44910

Encoders.bean does not support superclasses with generic type arguments

    XMLWordPrintableJSON

Details

    Description

      As perĀ SPARK-44634 another unsupported feature of bean encoder is when the superclass of the bean has generic type arguments. For example:

      class JavaBeanWithGenericsA<T> {
          public T getPropertyA() {
              return null;
          }
      
          public void setPropertyA(T a) {
      
          }
      }
      
      class JavaBeanWithGenericBase extends JavaBeanWithGenericsA<String> {
      }
      
      Encoders.bean(JavaBeanWithGenericBase.class); // Exception
      
      

      Attachments

        Issue Links

          Activity

            People

              gbloisi-openaire Giambattista Bloisi
              gbloisi-openaire Giambattista Bloisi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: