Array Functions
PantherFlow array functions
PantherFlow is in open beta starting with Panther version 1.110, and is available to all customers. Please share any bug reports and feature requests with your Panther support team.
arrays.difference()
arrays.difference()
arrays.difference(arr: [any], excluded_arr: [any]) -> [any]
Returns an array that contains the elements from arr
that are not in excluded_arr
.
Example:
arrays.intersection()
arrays.intersection()
arrays.intersection(arr1: [any], arr2: [any]) -> [any]
Returns an array that contains only the elements that are in both arr1
and arr2
.
Example:
arrays.len()
arrays.len()
arrays.len(arr: [any]) -> int
Returns the length of arr
. If arr
is not an array it is jsonified first.
Example:
arrays.overlap()
arrays.overlap()
arrays.overlap(arr1: [any], arr2: [any]) -> bool
Returns true if arr1
and arr2
have any elements in common.
Example:
arrays.sort()
arrays.sort()
arrays.sort(arr: [any] [, sort_asc: bool] [, nulls_first: bool]) -> [any]
Returns an array that contains the elements of the input array arr
sorted in ascending or descending order. Defaults to ascending order. You can specify whether or not null elements are sorted before or after non-null elements. Defaults to nulls last in ascending order and null first in descending order.
Example:
arrays.union()
arrays.union()
arrays.union(arr1: [any], arr2: [any]) -> [any]
Returns an array that contains all deduplicated elements of arr1
and arr2
.
Example:
Last updated