Re: get_json_object for nested field returning a String instead of an Array

2014-04-08 Thread David Quigley
; > UDF to cast it to an array, without any schema. But I don't think any > good, > > generic Json UDFs will support that for your case. > > > > Yong > > > >> Date: Mon, 7 Apr 2014 16:47:44 -0700 > >> Subject: Re: get_json_object for nested field

Re: get_json_object for nested field returning a String instead of an Array

2014-04-08 Thread Narayanan K
; generic Json UDFs will support that for your case. > > Yong > >> Date: Mon, 7 Apr 2014 16:47:44 -0700 >> Subject: Re: get_json_object for nested field returning a String instead >> of an Array >> From: knarayana...@gmail.com >> To: user@hive.apache.org > >&g

RE: get_json_object for nested field returning a String instead of an Array

2014-04-07 Thread java8964
for nested field returning a String instead of > an Array > From: knarayana...@gmail.com > To: user@hive.apache.org > > Thanks Peyman. > > Actually the problem with Hive-Json-Serde is that we need to provide > the entire schema upfront while creating the table. > > My requir

Re: get_json_object for nested field returning a String instead of an Array

2014-04-07 Thread Narayanan K
Thanks Peyman. Actually the problem with Hive-Json-Serde is that we need to provide the entire schema upfront while creating the table. My requirement is that we just project/aggregate on the fields using get_json_object after creating the external table without schema. This way the external tabl

Re: get_json_object for nested field returning a String instead of an Array

2014-04-07 Thread Peyman Mohajerian
perhaps: https://github.com/rcongiu/Hive-JSON-Serde On Mon, Apr 7, 2014 at 6:52 PM, Narayanan K wrote: > Hi all > > I am using get_json_object to read a json text file. I have created > the external table as below : > > CREATE EXTERNAL TABLE EXT_TABLE ( json string) > PARTITIONED BY (dt string)

get_json_object for nested field returning a String instead of an Array

2014-04-07 Thread Narayanan K
Hi all I am using get_json_object to read a json text file. I have created the external table as below : CREATE EXTERNAL TABLE EXT_TABLE ( json string) PARTITIONED BY (dt string) LOCATION '/users/abc/'; The json data has some fields that are not simple fields but fields which are nested fields