hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chen Song <chen.song...@gmail.com>
Subject Re: can i define an udf which can process more than one argument?
Date Fri, 19 Oct 2012 14:00:27 GMT
UDF can process multiple arguments. You just want to define the function
signature in that way.

For example,

evaluate(String s1, String s2, boolean t)


On Thu, Oct 18, 2012 at 11:36 PM, Chris Gong <fellowtree@163.com> wrote:

> **
> i find that UDF can only process one argument like
>    public long evaluate(String ip) {
>
>   }
>
> can i define a udf like  COALESCE(T v1, T v2, …) or  if(boolean
> testCondition, T valueTrue, T valueFalseOrNull)?
>
> ------------------------------
> Chris Gong
>



-- 
Chen Song

Mime
View raw message