Re: Convert string to map

2016-01-20 Thread Edward Capriolo
create table ().. [COLLECTION ITEMS TERMINATED BY char] [MAP KEYS TERMINATED BY char] collection items terminated by ',' map keys terminated by ':' works in many cases On Wed, Jan 20, 2016 at 9:07 PM, Buntu Dev wrote: > I found the brickhouse Hive udf `json_map' that seems to conver

Re: Convert string to map

2016-01-20 Thread Buntu Dev
I found the brickhouse Hive udf `json_map' that seems to convert to map of given type. Thanks! On Wed, Jan 20, 2016 at 2:03 PM, Buntu Dev wrote: > I got json string of the form: > > {"k1":"v1","k2":"v2,"k3":"v3"} > > How would I go about converting this to a map? > > Thanks! >

Convert string to map

2016-01-20 Thread Buntu Dev
I got json string of the form: {"k1":"v1","k2":"v2,"k3":"v3"} How would I go about converting this to a map? Thanks!