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

Phabricator updated HIVE-4025:
------------------------------

    Attachment: HIVE-4025.D8601.1.patch

navis requested code review of "HIVE-4025 [jira] Add reflect UDF for member 
method invocation of column".

Reviewers: JIRA

HIVE-4025 Add reflect UDF for member method invocation of column

There are many useful non-static methods on type of primitive types. But 
current reflect UDF cannot invoke those. For example,

select reflect2(value, "replace", "val", "VALUE") from src;

which replaces 'val' part of value column with 'VALUE'

TEST PLAN
  EMPTY

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

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java
  
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/AbstractGenericUDFReflect.java
  ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFReflect.java
  ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFReflect2.java
  ql/src/test/queries/clientpositive/udf_reflect2.q
  ql/src/test/results/clientpositive/udf_reflect2.q.out

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

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

To: JIRA, navis

                
> Add reflect UDF for member method invocation of column
> ------------------------------------------------------
>
>                 Key: HIVE-4025
>                 URL: https://issues.apache.org/jira/browse/HIVE-4025
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-4025.D8601.1.patch
>
>
> There are many useful non-static methods on type of primitive types. But 
> current reflect UDF cannot invoke those. For example,
> select reflect2(value, "replace", "val", "VALUE") from src;
> which replaces 'val' part of value column with 'VALUE'

--
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