You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Swagatika Tripathy <sw...@gmail.com> on 2013/08/18 19:56:11 UTC

Re: UDAF HELP

Hi,
i have a requirement to compare two different columns in 2 adjacent rows
and if values are equal, it should return a non zero value else should give
0 as result.

Please let me know how can we implement using UDAF(User Defined Aggregate
Function) in hive.

TIA.

Regards,
Swagtk


On Fri, Aug 16, 2013 at 11:43 PM, Swagatika Tripathy <
swagatikat856@gmail.com> wrote:

> Hi,
> i have a requirement to compare two different columns in 2 adjacent rows
> and if values are equal, it should return a non zero value else should give
> 0 as result.
>
> Please let me know how can we implement using UDAF(User Defined Aggregate
> Function) in hive.
>
> TIA.
>
> Regards,
> Swagatika
>