I've only used Hive 0.12+ and I'm not really familiar with UDAFs, but had to
pass some info to a GenericUDF so this might give you some ideas:
- During query planning you might be able to set the hive conf using
SessionState.get().getConf(). When the query is executing you might be able to
acc
The code I'm having problems with is
https://github.com/livingsocial/HiveSwarm/blob/WIP_scripting/src/main/java/com/livingsocial/hive/udf/ScriptedUDAF.java.
There is a FIXME comment at the problem area where the return type for
the init method can not be determined.
On Mon, Feb 10, 2014 at 4:26 P
I'm working on a UDAF that takes in a constant string that defines
what the final output of the UDAF will be. In the mode=PARTIAL1 call
to the init function all the parameters are available and the constant
can be read so the output ObjectInspector can be built. I haven't
found a way to pass this