I updated the reflection UDF to attempt to use GenericUDF.
I have a couple questions and I can use suggestions:
Text t = new Text();
I am currently doing this. I was under the impression that a GenericUDF can return anything. However my return is based on the output of reflection. It could be any type including void. How can I control the return type.
reflect("java.lang.String", "valueOf", 1)
In this case the reflection fails because of a Hive conversion.
no method java.lang.NoSuchMethodException: java.lang.String.valueOf(org.apache.hadoop.io.IntWritable)
Should I write a function to do some auto boxing? If so, is there any predefined conversions I can use as a guide? What types can I expect and so on?