You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2010/02/04 08:58:28 UTC

[jira] Updated: (HIVE-471) A UDF for simple reflection

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

Zheng Shao updated HIVE-471:
----------------------------

    Attachment: HIVE-471.1.patch

Hi Edward, I modified your patch to make it work.

Can you take a look and let me know any questions? It will be great to add enough comments in the code to make it clear to other developers.



> A UDF for simple reflection
> ---------------------------
>
>                 Key: HIVE-471
>                 URL: https://issues.apache.org/jira/browse/HIVE-471
>             Project: Hadoop Hive
>          Issue Type: New Feature
>          Components: Query Processor
>            Reporter: Edward Capriolo
>            Assignee: Edward Capriolo
>            Priority: Minor
>         Attachments: hive-471-gen.diff, HIVE-471.1.patch, hive-471.diff
>
>
> There are many methods in java that are static and have no arguments or can be invoked with one simple parameter. More complicated functions will require a UDF but one generic one can work as a poor-mans UDF.
> {noformat}
> SELECT reflect("java.lang.String", "valueOf", 1), reflect("java.lang.String", "isEmpty")
> FROM src LIMIT 1;
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.