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

Impala should gracefully handle unsupported Hive table types, specifically VIEWS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 0.6
    • None
    • None
    • None

    Description

      If if we attempt to load the metadata for an unsupported Hive table type, such as a VIEW we get an error like below. Instead we should check the table type and throw a more intelligible error message if it is not a MANAGED or EXTERNAL table. This can be done in Table.load(...).

      hive -e "create view test_view as select * from functional.alltypes limit 10"
      
      impala-shell -i localhost -q "select * from test_view"
      Caused by: com.cloudera.impala.catalog.Db$TableLoadingException: Failed to load metadata for table: test_view3
      	at com.cloudera.impala.catalog.HdfsTable.load(HdfsTable.java:594)
      	at com.cloudera.impala.catalog.Table.load(Table.java:111)
      	at com.cloudera.impala.catalog.Db$LazyTableMap.loadTable(Db.java:227)
      ...
      Caused by: java.lang.IllegalArgumentException: Can not create a Path from a null string
      	at org.apache.hadoop.fs.Path.checkPathArg(Path.java:87)
      	at org.apache.hadoop.fs.Path.<init>(Path.java:99)
      	at com.cloudera.impala.catalog.HdfsTable.addPartition(HdfsTable.java:535)
      	at com.cloudera.impala.catalog.HdfsTable.loadPartitions(HdfsTable.java:496)
      	at com.cloudera.impala.catalog.HdfsTable.load(HdfsTable.java:590)
      

      Attachments

        Activity

          People

            lskuff Lenni Kuff
            lskuff Lenni Kuff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: