Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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;