drill-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abdel Hakim Deneche <adene...@maprtech.com>
Subject Re: UDF - BooleanHolder
Date Wed, 03 Feb 2016 23:21:30 GMT
It's called BitHolder

On Wed, Feb 3, 2016 at 3:12 PM, Nicolas Paris <niparisco@gmail.com> wrote:

> Hello,
>
> Hello,
>
> I would like to create a user defined function that would return a boolean
> value.
> Use case would be :
>
> SELECT * FROM x WHERE MyFunction();
>
> I haven't found any BooleanHolder in order to.
>
>   @Output
>     BooleanHolder out;
>
> The only way I have is:
> SELECT * FROM x WHERE MyFunction() =1;
>
> Maybe I miss something
>
> Thanks
>



-- 

Abdelhakim Deneche

Software Engineer

  <http://www.mapr.com/>


Now Available - Free Hadoop On-Demand Training
<http://www.mapr.com/training?utm_source=Email&utm_medium=Signature&utm_campaign=Free%20available>

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