Impala Numeric Function Support
TDV supports the numeric functions listed in the table below for Impala.
|
Impala Numeric Function |
Notes |
|
ABS |
|
|
ACOS |
|
|
ASIN |
|
|
ATAN |
|
|
CEIL |
|
|
CEILING |
|
|
COS |
|
|
DEGREES |
|
|
EXP |
|
|
FLOOR |
|
|
LN |
|
|
LOG |
|
|
PI |
Returns the value of pi as a float value, with at least 6 digits of precision. Returned precision is greater without push. |
|
POW |
|
|
POWER |
|
|
RANDOM, RAND |
Every invocation returns a different value for TDV. Impala always returns the same value for RAND() if the number sequence is not changed for each query invocation. |
|
RADIANS |
|
|
ROUND |
The value of the second parameter in Round(p,s) cannot exceed 38. There is different logic for round-off on the avg(distinct decimal) function. TDV does round-off, whereas Impala rounds-down. |
|
SIN |
|
|
SQRT |
|
|
TAN |
|