Hi Tug,

Let's say your UDF returns an int, your @output field will be defined like
this:

@Output NullableIntHolder out;


To return a NULL you just have to set:

out.isSet = 0;


Thanks

On Tue, Oct 6, 2015 at 1:56 AM, Tugdual Grall <[email protected]> wrote:

> Hello Drillers,
>
> I am developing a custom function and I would like to return NULL (based on
> the value, for example if the varchar is '' I want my function to return
> NULL)
>
> I have not found the way to do it.
>
>
> Regards
> Tug
> @tgrall
>



-- 

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>

Reply via email to