You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Adam O'Donnell <ad...@immunet.com> on 2010/03/22 05:19:21 UTC

SerDe examples that use arrays and structs?

First of all, thank you to all of the facebook guys for hosting the
hive user group last week.

Second of all, does anyone have some SerDe code that uses arrays and
structs on deserialization?

Also, is there a way inside of Hive to discover the number of elements
in an array?

Thanks and take care

Adam

Re: SerDe examples that use arrays and structs?

Posted by Chris Goffinet <go...@digg.com>.
Look through the test code, lot's of examples there.

-Chris

On Mar 21, 2010, at 9:19 PM, Adam O'Donnell wrote:

> First of all, thank you to all of the facebook guys for hosting the
> hive user group last week.
> 
> Second of all, does anyone have some SerDe code that uses arrays and
> structs on deserialization?
> 
> Also, is there a way inside of Hive to discover the number of elements
> in an array?
> 
> Thanks and take care
> 
> Adam


Re: SerDe examples that use arrays and structs?

Posted by Zheng Shao <zs...@gmail.com>.
BinarySortableSerDe, LazySimpleSerDe, and LazyBinarySerDe all supports
arrays/structs.

There is a UDF called size(var) that can return the size of an array.

Zheng

On Sun, Mar 21, 2010 at 9:19 PM, Adam O'Donnell <ad...@immunet.com> wrote:
> First of all, thank you to all of the facebook guys for hosting the
> hive user group last week.
>
> Second of all, does anyone have some SerDe code that uses arrays and
> structs on deserialization?
>
> Also, is there a way inside of Hive to discover the number of elements
> in an array?
>
> Thanks and take care
>
> Adam
>



-- 
Yours,
Zheng