Question on converting an array of structs into a map

2014-04-08 Thread Sunderlin, Mark
I have data in two tables that looks like this: Table_1 Sequence_numint, User_id string Table_2 Sequence_numint User_attributes array> Sequence number joins the two and it is a one to one and only one relationship. Where I want to end up: A singl

Re: A GenericUDF Function to Extract a Field From an Array of Structs

2013-04-02 Thread Navis류승우
return (List) data; > } > > @Override > public String getTypeName() > { > return null; //To change body of implemented methods use File | > Settings | File Templates. > } > > @Override > public Category getCategory() > { >

UDF for transforming a collection of arrays into an array of structs

2013-03-29 Thread Roberto Congiu
better be represented as a struct. Is there an UDF that can take a group of arrays and, assuming they're all the same size, return an array of structs instead ? I know it's not difficult to implement using generic UDFs, but I was wondering if anybody had already done it, and if not, if a

RE: A GenericUDF Function to Extract a Field From an Array of Structs

2013-03-28 Thread Peter Chu
e.apache.org Subject: A GenericUDF Function to Extract a Field From an Array of Structs Date: Thu, 28 Mar 2013 14:16:33 -0700 I am trying to write a GenericUDF function to collect all of a specific struct field(s) within an array for each record, and return them in an array as well. I wrote the UDF (as

A GenericUDF Function to Extract a Field From an Array of Structs

2013-03-28 Thread Peter Chu
I am trying to write a GenericUDF function to collect all of a specific struct field(s) within an array for each record, and return them in an array as well. I wrote the UDF (as below), and it seems to work but: 1) It does not work when I am performing this on an external table, it works fine on

Array of Structs

2012-07-13 Thread Bhaskar, Snehalata
Hi all, How to create an array of structs in hive? And How to populate that table with data? Please help. Thanks and regards, Snehalata Deorukhkar Nortel No:0229-5814 Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be