mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
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:
committed by
Nong Li
parent
1b12e17fc1
commit
7a0cc27fd1
@@ -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
|
||||
====
|
||||
|
||||
Reference in New Issue
Block a user