Re: INSERT INTO table with STRUCT, SELECT FROM

2013-02-13 Thread Dean Wampler
Hmm. I tried the following hacks, but all wouldn't parse. Ideas? I changed: ... select struct(x,y) ... to ... select struct(x,y) as structa:int,b:int ... ... select cast(struct(x,y) as structa:int,b:int) ... ... select struct(x as a,y as b) ... Okay, but there is a hack that does

Re: INSERT INTO table with STRUCT, SELECT FROM

2013-02-13 Thread Michael Malak
dean.wamp...@thinkbiganalytics.com Subject: Re: INSERT INTO table with STRUCT, SELECT FROM To: user@hive.apache.org Date: Wednesday, February 13, 2013, 12:47 PM Hmm. I tried the following hacks, but all wouldn't parse. Ideas? I changed:   ... select struct(x,y) ...  to   ... select struct(x,y

Re: INSERT INTO table with STRUCT, SELECT FROM

2013-02-13 Thread Edward Capriolo
I developed the inline udtf. Seems to work: http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/queries/clientpositive/udf_inline.q as (id, text) FROM SRC limit 2; SELECT inline( ARRAY( STRUCT (1,'dude!'), STRUCT (2,'Wheres'), STRUCT (3,'my car?') ) ) as (id, text) FROM