[ https://issues.apache.org/jira/browse/HIVE-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carl Steinbach updated HIVE-471: -------------------------------- Component/s: (was: Query Processor) UDF Affects Version/s: (was: 0.6.0) 0.7.0 Summary: Add reflect() UDF for reflective invocation of Java methods (was: A UDF for simple reflection) > Add reflect() UDF for reflective invocation of Java methods > ----------------------------------------------------------- > > Key: HIVE-471 > URL: https://issues.apache.org/jira/browse/HIVE-471 > Project: Hive > Issue Type: New Feature > Components: UDF > Affects Versions: 0.7.0 > Reporter: Edward Capriolo > Assignee: Edward Capriolo > Priority: Minor > Fix For: 0.7.0 > > Attachments: hive-471-gen.diff, HIVE-471.1.patch, HIVE-471.2.patch, > HIVE-471.3.patch, HIVE-471.4.patch, HIVE-471.5.patch, HIVE-471.6.patch.txt, > 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.