Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.13.1
-
None
-
None
-
Supports negative and non-constant expressions for ARRAY/MAP type indices.
Description
Here is my sample:
CREATE TABLE RECORD(RecordID string, BatchDate string, Country string) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,D:BatchDate,D:Country") TBLPROPERTIES ("hbase.table.name" = "RECORD"); CREATE TABLE KEY_RECORD(KeyValue String, RecordId map<string,string>) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key, K:") TBLPROPERTIES ("hbase.table.name" = "KEY_RECORD");
The following join statement doesn't work.
SELECT a.*, b.* from KEY_RECORD a join RECORD b
WHERE a.RecordId[b.RecordID] is not null;
FAILED: SemanticException 2:16 Non-constant expression for map indexes not supported. Error encountered near token 'RecordID'