hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jiang <it.mjji...@gmail.com>
Subject Re: UDF of processing a column like pig?
Date Mon, 28 Mar 2011 18:30:52 GMT
Thanks, so, I guess only java is supported, right?

On Mon, Mar 28, 2011 at 11:27 AM, Christopher, Pat <
patrick.christopher@hp.com> wrote:

> You can create UDFs, UDAFs and UDTFs.
> http://wiki.apache.org/hadoop/Hive/HivePlugins
>
>
>
> Pat
>
>
>
> *From:* Michael Jiang [mailto:it.mjjiang@gmail.com]
> *Sent:* Monday, March 28, 2011 11:13 AM
> *To:* user@hive.apache.org
> *Subject:* UDF of processing a column like pig?
>
>
>
> I want to have a function that returns the hour information from a date
> string (wiz not a known format supported by current date functions, but
> basically this is just a use case example). In pig, you can create a UDF
> (user defined function) and apply it to a column. Is there an equivalent
> thing in Hive? I know I can write a mapper to take whole line and transform
> the specific column I want. But it's not convenient because you have to
> duplicate the same code for each different source table.
>
> Thanks!
>

Mime
View raw message