hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sha Liu" <lius...@hotmail.com>
Subject Hive UDF converting structs to JSON strings
Date Thu, 15 Aug 2013 21:05:56 GMT
Hi Hive Gurus,

Is there a Hive UDF (built-in or 3rd party) that takes a struct and converts 
it to a JSON string?

Queries display structs fine, but when inserting struct columns into a table 
where the corresponding columns are typed as strings, the format is gone and 
all field name and values are just concatenated together (at least for Hive 
0.9.0 that I'm using).

For my case it is relevantly easy to construct JSON strings by myself, but I 
wonder if there is a more standardized way to do so.

Thanks,
Sha Liu 


Mime
View raw message