hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hezhiqiang (Ransom)" <ransom.hezhiqi...@huawei.com>
Subject Map<String,Array<String>> cann't insert two or more array values
Date Tue, 14 Feb 2012 11:06:31 GMT
Hi all

I create a table like this:
create table if not exists employee10
(Id int ,Mapdata Map<String,Array<String>>)
row format delimited fields terminated by ',' collection items terminated by '@' map keys
terminated by '$'  stored as textfile;
I can load data like this:
1,x$2  // success
2,x$1@y$3  // success
3,x$2@3@y$4 // faild the value is  3       {"x":["2"],"3":null,"y":["4"]}    just  like this
{x:[2,3],y:[4]}
So I can't load data like in Map<String,Array<String>>  more Array value?
Is a bug or not supported yet? Or how can I load more data to array in map?

Best regards
Ransom.

Mime
View raw message