我有一個java Map(Map)和一個JDBC連接到配置單元服務器。 服務器上表的模式包含一個Map類型的列。 是否可以使用JDBC將java Map插入到具有相似數據類型的hive表列中?使用jdbc在配置單元中插入映射和其他複雜類型
我想:
"create table test(key string, value Map<String, String>)"
"insert into table test values ('keywer', map('subkey', 'subvalue')) from dummy limit 1;"
裁判:Hive inserting values to an array complex type column
但是插入失敗:
"Error: Error while compiling statement: FAILED: ParseException line 1:69 missing EOF at 'from' near ')' (state=42000,code=40000)"
[編輯]
蜂巢版本是:0.14。 0
感謝