Convert math functions to the UDF interface.

Also adds FunctionContext::GetNumArgs() method to the public UDF API.

Change-Id: I76e21814e423f075a0a22b4e924c1d3ec26daba7
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3410
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: Skye Wanderman-Milne <skye@cloudera.com>
This commit is contained in:
Skye Wanderman-Milne
2014-07-09 11:58:26 -07:00
committed by Nong Li
parent 1b12e17fc1
commit 7a0cc27fd1
10 changed files with 511 additions and 613 deletions

View File

@@ -1691,3 +1691,11 @@ select 1.1 * 1.1 + c3 from functional.decimal_tiny limit 2;
---- TYPES
decimal
====
---- QUERY
# Test weird log values (these are annoying to check in expr-test)
select log(1,2), log(1,1), log(0,2), log(2,0), log(0,0);
---- RESULTS
Infinity,NaN,-0,-Infinity,Nan
---- TYPES
double,double,double,double,double
====