hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jiraposter@reviews.apache.org (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-1734) Implement map_keys() and map_values() UDFs
Date Fri, 05 Aug 2011 18:45:28 GMT

    [ https://issues.apache.org/jira/browse/HIVE-1734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080144#comment-13080144
] 

jiraposter@reviews.apache.org commented on HIVE-1734:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1082/
-----------------------------------------------------------

(Updated 2011-08-05 18:44:36.743395)


Review request for hive.


Summary
-------

This patch adds map_keys(map) and map_values(map) UDFs.


This addresses bug HIVE-1734.
    https://issues.apache.org/jira/browse/HIVE-1734


Diffs (updated)
-----

  ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java 13584c1 
  ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFMapKeys.java PRE-CREATION 
  ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFMapValues.java PRE-CREATION

  ql/src/test/queries/clientnegative/udf_map_keys_arg_num.q PRE-CREATION 
  ql/src/test/queries/clientnegative/udf_map_keys_arg_type.q PRE-CREATION 
  ql/src/test/queries/clientnegative/udf_map_values_arg_num.q PRE-CREATION 
  ql/src/test/queries/clientnegative/udf_map_values_arg_type.q PRE-CREATION 
  ql/src/test/queries/clientpositive/udf_map_keys.q PRE-CREATION 
  ql/src/test/queries/clientpositive/udf_map_values.q PRE-CREATION 
  ql/src/test/results/clientnegative/udf_map_keys_arg_num.q.out PRE-CREATION 
  ql/src/test/results/clientnegative/udf_map_keys_arg_type.q.out PRE-CREATION 
  ql/src/test/results/clientnegative/udf_map_values_arg_num.q.out PRE-CREATION 
  ql/src/test/results/clientnegative/udf_map_values_arg_type.q.out PRE-CREATION 
  ql/src/test/results/clientpositive/show_functions.q.out d4f6c98 
  ql/src/test/results/clientpositive/udf_map_keys.q.out PRE-CREATION 
  ql/src/test/results/clientpositive/udf_map_values.q.out PRE-CREATION 

Diff: https://reviews.apache.org/r/1082/diff


Testing
-------


Thanks,

Carl



> Implement map_keys() and map_values() UDFs
> ------------------------------------------
>
>                 Key: HIVE-1734
>                 URL: https://issues.apache.org/jira/browse/HIVE-1734
>             Project: Hive
>          Issue Type: New Feature
>          Components: UDF
>    Affects Versions: 0.6.0
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>         Attachments: HIVE-1734-mapudf.1.patch.txt, MapKeys.java, MapValues.java
>
>
> Implement the following UDFs:
> <array> map_keys(<map>)
> and
> <array> map_values(<map>)
> map_keys() takes a map as input and returns an array consisting of the key values in
the supplied map.
> Similarly, map_values() takes a map as input and returns an array containing the map
value fields.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message