|
|
-
Re: can i define an udf which can process more than one argument?Chen Song 2012-10-19, 14:00
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 <[EMAIL PROTECTED]> 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 |