drill-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yash Sharma <yash...@gmail.com>
Subject Re: Custom functions with arbitrary number of arguments + improving physical plan on known cases
Date Mon, 18 Aug 2014 15:55:02 GMT
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" <alex.jose.rodrigues@gmail.com>
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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message