Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4503

Order of fields in records should follow that of the SQL types

    XMLWordPrintableJSON

    Details

      Description

      When dealing with records coming from Java classes, Avatica relies on the order of fields coming from java.lang.Class#getFields instead of using the order defined in the underlying SQL data type:

      1. org.apache.calcite.avatica.MetaImpl#createGetter(int ordinal)
      2. org.apache.calcite.avatica.util.RecordIteratorCursor#RecordIteratorCursor(Iterator<E> iterator, Class<E> clazz)

      This behaviour prevents the change of fields orders, and it's particularly problematic because #getFields is JVM-specific.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                asolimando Alessandro Solimando
                Reporter:
                asolimando Alessandro Solimando
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: