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

Impala can only handle lowercase schema elements of Iceberg table

    XMLWordPrintableJSON

Details

    • ghx-label-3

    Description

      When Impala/Hive creates a table they lowercase the schema elements.

      Impala even has precondition checks that the schema elements are lower case:
      https://github.com/apache/impala/blob/b1c1be12f3cceed48e93eddae8b9512737e3e0d2/fe/src/main/java/org/apache/impala/catalog/Column.java#L56

      But when an Iceberg table is created via Spark it doesn't lowercase the column names, so the metadata.json file looks like this:

      ...
        "schema" : {
          "type" : "struct",
          "schema-id" : 0,
          "fields" : [ {
            "id" : 1,
            "name" : "Region",
            "required" : false,
            "type" : "string"
          }, {
      ...
      

      Hence when Impala tries to load such tables it runs to the above precondition check which raises an IllegalStateException.

      Attachments

        Activity

          People

            boroknagyz Zoltán Borók-Nagy
            boroknagyz Zoltán Borók-Nagy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: