Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 1.0.1
-
None
-
None
Description
If the column mapping does not match the schema, Impala does not handle it gracefully. In this example:
1) $hbase shell
hbase(main):002:0>create 'testtable','colfam1'
2) In Hive Shell
CREATE EXTERNAL TABLE hbase_table_1(key string, value string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = "colfam1:val")
TBLPROPERTIES("hbase.table.name" = "testtable");
Impala will fail to load the table with an error:
CAUSED BY: TableLoadingException: Failed to load metadata for HBase table:
hbase_hive_table_1
CAUSED BY: IndexOutOfBoundException: Index: 1, Size: 1
Impala should report a proper error instead. Also, Hive can query the table.