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. This function can only be used in a foreach statement.
  • 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.

Example

1q = foreach q generate power(length, 2) as area, length;
2q = filter q by power(length, 2) > 10;