Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CA1A9F22 for ; Tue, 7 Aug 2012 12:55:09 +0000 (UTC) Received: (qmail 17448 invoked by uid 500); 7 Aug 2012 12:55:09 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 17404 invoked by uid 500); 7 Aug 2012 12:55:09 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 17396 invoked by uid 500); 7 Aug 2012 12:55:09 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 17393 invoked by uid 99); 7 Aug 2012 12:55:09 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 12:55:09 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id C0B5114284D for ; Tue, 7 Aug 2012 12:55:08 +0000 (UTC) Date: Tue, 7 Aug 2012 12:55:08 +0000 (UTC) From: "David Worms (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1045641791.199.1344344108793.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1751831438.30935.1331082718662.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2843) UDAF to convert an aggregation to a map MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-2843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430324#comment-13430324 ] David Worms commented on HIVE-2843: ----------------------------------- Patch is now uploaded, let me know in case it need to be modified. d. > UDAF to convert an aggregation to a map > --------------------------------------- > > Key: HIVE-2843 > URL: https://issues.apache.org/jira/browse/HIVE-2843 > Project: Hive > Issue Type: New Feature > Components: UDF > Affects Versions: 0.9.0, 0.10.0 > Reporter: David Worms > Priority: Minor > Labels: features, udf > Attachments: HIVE-2843.1.patch.txt > > > I propose the addition of two new Hive UDAF to help with maps in Apache Hive. The source code is available on GitHub at https://github.com/wdavidw/hive-udf in two Java classes: "UDAFToMap" and "UDAFToOrderedMap". The first function convert an aggregation into a map and is internally using a Java `HashMap`. The second function extends the first one. It convert an aggregation into an ordered map and is internally using a Java `TreeMap`. They both extends the `AbstractGenericUDAFResolver` class. > Also, I have covered the motivations and usages of those UDAF in a blog post at http://adaltas.com/blog/2012/03/06/hive-udaf-map-conversion/ > If you are interested by my proposal, I'll take the time to update this issue while following the guideline posted on the wiki to create an appropriate path. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira