Newer Version Available
power(m, n)
Returns m raised to the nth power.
m, n can be any numeric value in the range of -1e308 <=
m, n <= 1e308. Returns null if m = 0
and n < 0.
- If m = 0, n must be a non-negative value.
- If m < 0, n must be an integer value.
- The result of power(m, n) must be within the range expressed by a float64 number.
These examples are
valid:
1q = foreach q generate power(length, 2) as area, length;
2q = filter q by power(length, 2) > 10;These examples are
invalid:
1q = group q by power(length, 2);
2q = order q by power(length, 2);