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

Ignore avro.schema.url if table doesn't have Avro data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Catalog

    Description

      In local catalog mode we always try to load the Avro schema if the table property 'avro.schema.url' is present:

      https://github.com/apache/impala/blob/80fc49abe6c574f8d6bea8bb56ff4917f6281a41/fe/src/main/java/org/apache/impala/catalog/local/LocalFsTable.java#L142

      This makes tables unloadable if the value of this table property is invalid. Even if the actual table doesn't have any Avro partitions.

      This is a regression from legacy catalog mode where we only tried to load the Avro schema if the table actually had Avro data:

      https://github.com/apache/impala/blob/80fc49abe6c574f8d6bea8bb56ff4917f6281a41/fe/src/main/java/org/apache/impala/catalog/HdfsTable.java#L1758

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: