Hi there
I am writing a hive UDF function. The input could be string, int, double etc.
The return is based on the data type. I was trying to use the generic method,
however, hive seems not recognize it.
Here is the piece of code I have as example.
public T T evaluate(final T s, final String
Sounds like you are using the older style UDF class. In that case, yes you
would have to override evaluate() for each type of input.
You could also try overriding the GenericUDF class - that would allow you to do
a single method, though it may be a bit more complicated (can look at the Hive