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

Unable to drop AVRO table if schema file is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 2.2.4
    • None
    • Frontend

    Description

      See the test case below:

      host-10-17-80-18.coe.cloudera.com:21000] > CREATE external TABLE test STORED AS AVRO LOCATION '/tmp/93548/data' TBLPROPERTIES ('avro.schema.url'='/tmp/schema.json');
      Query: create external TABLE test STORED AS AVRO LOCATION '/tmp/93548/data' TBLPROPERTIES ('avro.schema.url'='/tmp/schema.json')
      
      WARNINGS: Ignoring column definitions in favor of Avro schema.
      The Avro schema has 2 column(s) but 0 column definition(s) were given.
      Fetched 0 row(s) in 4.08s
      
      # after renamed the file /tmp/schema.json to /tmp/schema.json.tmp
      
      [host-10-17-80-18.coe.cloudera.com:21000] > drop table test;
      Query: drop table test
      ERROR: AnalysisException: Failed to load metadata for table: case_93548.test
      CAUSED BY: AnalysisException: Invalid avro.schema.url: /tmp/schema.json. Path does not exist.
      CAUSED BY: TableLoadingException: Failed to load metadata for table: case_93548.test
      CAUSED BY: AnalysisException: Invalid avro.schema.url: /tmp/schema.json. Path does not exist.
      

      Same command will work OK in Hive without problems.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ericlin Eric Lin
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: