For point 1- Yep we started this discussion on hangout some time back for the reflect udf support but i couldn't develop and support it as of now. Well @jinfeng is ur guy for more info on implementing this functionality.
Thanks,Y On 18/08/2014 7:46 pm, "Alexandre Rodrigues" <[email protected]> wrote: > Hi drillers, > > I have two questions regarding custom functions. > > *Question 1* – how to implement a function with arbitrary arguments > > I am trying to implement a function that accepts an arbitrary number of > arguments, like the following: > > > SELECT * FROM somesource ss > WHERE foo(ss.a, ss.b, 1, 2, 3, 4) > > Foo function will return a boolean. > How can I have a SimpleFunction accept more than 2 arguments (left and > right)? > > > > *Question 2* - if there's a way to limit the search scope with an heuristic > (e.g. scan range in a HBase table), how can I hint the runtime or 'affect' > the physical plan through custom code? Is this possible? > > > Thanks, > Alex >
