hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Capriolo <edlinuxg...@gmail.com>
Subject Re: Convert string to map
Date Thu, 21 Jan 2016 02:12:38 GMT
create table xxxx ()..
[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 <buntudev@gmail.com> wrote:

> 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 <buntudev@gmail.com> wrote:
>
>> I got json string of the form:
>>
>>   {"k1":"v1","k2":"v2,"k3":"v3"}
>>
>> How would I go about converting this to a map<string, string>?
>>
>> Thanks!
>>
>
>

Mime
View raw message