hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Tromans (JIRA)" <>
Subject [jira] [Commented] (HIVE-2843) UDAF to convert an aggregation to a map
Date Wed, 18 Jul 2012 14:56:34 GMT


Philip Tromans commented on HIVE-2843:

Hi David,

I think that this would be a really useful addition to Hive. I was just about to write the
same UDAF when I came across yours. I think implode_to_map is a good name for it, because
as you say, implode has quite a few meanings, but I'm interested in what others have to say.

I don't mind preparing / submitting the patch / test cases if you're working on other things.


> UDAF to convert an aggregation to a map
> ---------------------------------------
>                 Key: HIVE-2843
>                 URL:
>             Project: Hive
>          Issue Type: New Feature
>          Components: UDF
>    Affects Versions: 0.9.0
>            Reporter: David Worms
>            Priority: Minor
>              Labels: features, udf
> I propose the addition of two new Hive UDAF to help with maps in Apache Hive. The source
code is available on GitHub at 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`
> Also, I have covered the motivations and usages of those UDAF in a blog post at
> 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:!default.jspa
For more information on JIRA, see:


View raw message