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

MetaImpl#fieldMetaData wrongly uses 1-based column ordinals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • avatica-1.10.0
    • avatica
    • None

    Description

      Method org.apache.calcite.avatica.MetaImpl#fieldMetaData(Class) creates Column metadata info from a metadata class. At the same time, the method provides the column ordinal, which is starts at 1, whereas ColumnMetadata ordinal starts at 0 (according to field comment and usage inside avatica).

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            laurent Laurent Goujon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: