Re: Hive UDAF extending UDAF class: iterate or evaluate method

2013-08-07 Thread Lefty Leverenz
Reply-To: user@hive.apache.org user@hive.apache.org Date: Monday, August 5, 2013 9:41 AM To: user@hive.apache.org user@hive.apache.org Subject: Re: Hive UDAF extending UDAF class: iterate or evaluate method Hi Lefty, I used the wiki you sent to write my first version of UDAF. However, I

Re: Hive UDAF extending UDAF class: iterate or evaluate method

2013-08-07 Thread Ritesh Agrawal
*** From: Ritesh Agrawal ragra...@netflix.com Reply-To: user@hive.apache.org user@hive.apache.org Date: Monday, August 5, 2013 9:41 AM To: user@hive.apache.org user@hive.apache.org Subject: Re: Hive UDAF extending UDAF class: iterate or evaluate method

Re: Hive UDAF extending UDAF class: iterate or evaluate method

2013-08-07 Thread Sanjay Subramanian
: Wednesday, August 7, 2013 5:57 PM To: user@hive.apache.orgmailto:user@hive.apache.org user@hive.apache.orgmailto:user@hive.apache.org Subject: Re: Hive UDAF extending UDAF class: iterate or evaluate method Hi Sanjay, Lefty Thanks for the help but none of above responses directly answering my

Re: Hive UDAF extending UDAF class: iterate or evaluate method

2013-08-05 Thread Ritesh Agrawal
Hi Lefty, I used the wiki you sent to write my first version of UDAF. However, I found it to be utterly complex, especially for storing partial results as I am not very familiar with hive API. Then I found another example of UDAF in the hadoop the definitive guide book and it had much simpler

Hive UDAF extending UDAF class: iterate or evaluate method

2013-08-04 Thread Ritesh Agrawal
Hi all, I am trying to write a UDAF function. I found an example that shows how to implement a UDAF in Hadoop The Definitive Guide book. However I am little confused. In the book, the author extends UDAF class and implements init, iterate, terminatePartial, merge and terminate function.

Re: Hive UDAF extending UDAF class: iterate or evaluate method

2013-08-04 Thread Lefty Leverenz
You might find this wikidoc useful: GenericUDAFCaseStudyhttps://cwiki.apache.org/confluence/display/Hive/GenericUDAFCaseStudy . The O'Reilly book Programming Hive also has a section called User-Defined Aggregate Functions in chapter 13 (Functions), pages 172 to 176. -- Lefty On Sun, Aug 4,