[ 
https://issues.apache.org/jira/browse/HIVE-2843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phabricator updated HIVE-2843:
------------------------------

    Attachment: HIVE-2843.D8745.1.patch

navis requested code review of "HIVE-2843 [jira] UDAF to convert an aggregation 
to a map".

Reviewers: JIRA

HIVE-2843 UDAF to convert an aggregation to a map

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/

The full patch is available with tests as well.

TEST PLAN
  EMPTY

REVISION DETAIL
  https://reviews.facebook.net/D8745

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java
  ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFImplodeToMap.java
  
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFImplodeToOrderedMap.java
  ql/src/test/queries/clientpositive/implode_to_map.q
  ql/src/test/queries/clientpositive/implode_to_ordered_map.q
  ql/src/test/results/clientpositive/implode_to_map.q.out
  ql/src/test/results/clientpositive/implode_to_ordered_map.q.out

MANAGE HERALD RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/21309/

To: JIRA, navis

                
> 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, HIVE-2843.D8745.1.patch
>
>
> 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/
> The full patch is available with tests as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to