Description
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.
SELECT reflect("java.lang.String", "valueOf", 1), reflect("java.lang.String", "isEmpty") FROM src LIMIT 1;
Attachments
Attachments
Issue Links
- relates to
-
HIVE-1877 Add java_method() as a synonym for the reflect() UDF
- Closed