My goal is to be able to make functions like GREATER(a,b,c...) which can
take any number of columns, and for each row will give the greater of them.
I also want to detect what type of columns they are, and use IntGREATER or
DoubleGREATER or whatever.
A) has someone done something like this?
B) If not, how can I specify the correct Schema for getArgToFuncMapping?
Ideally it could just detect the schema of the first and go off of that, but
it looks like you have to match it directly... I tried overloading the
schema GREATER (where getArgTofuncMapping lives) and then using that to
figure out how many fields there are, but that didn't work. Should this
approach work? IE is getSchema called before getArgToFuncMapping? Is there a
cleaner way to do this?
Thanks for your help!
Jon