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
return (List) data;
> }
>
> @Override
> public String getTypeName()
> {
> return null; //To change body of implemented methods use File |
> Settings | File Templates.
> }
>
> @Override
> public Category getCategory()
> {
>
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
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
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
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