Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3776

'describe formatted' broken for avro tables with mismatching column information in hive metastore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 2.5.0
    • Impala 2.7.0, Impala 2.6.2
    • Frontend
    • None

    Description

      For Avro tables the column information in the underlying database of the Hive metastore can be different from what is specified in the 'avro.schema.url' file. HIVE-6308 aimed to improve upon this, but for older tables the two don't necessarily align.

      There are two possible cases:

      1. Hive's underlying database contains a column, which is not present in the Avro schema file. In this case we encounter a NullPointerException in DescribeResultFactory.java#L189 when trying to lookup the column in our internal table.
      2. The avro schema contains a column, which is not present in the underlying database. In this case the column will not be displayed in describe formatted.

      Attachments

        Issue Links

          Activity

            People

              lv Lars Volker
              lv Lars Volker
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: