Generates an array of all unique elements among one or more arrays.

Array literal reference example:

derive type:single value:ARRAYUNIQUE([["A","B"],["A","C"]] )

Output: Generates a single array:

["A","B","C"] 

Single-column reference example:

derive type:single value:ARRAYUNIQUE([array1]) as:'unique_Array1'

Output: Generates a new unique_Array1 column containing a single array of all unique elements in array1 .

Multi-column reference example:

derive type:single value:ARRAY UNIQUE ([array1,array2]) as:'unique_Array2'

Output: Generates a new unique_Array2 column containing a single array listing all unique elements in array1 and array2 .

derive type:single value:ARRAY UNIQUE (array_ref1,array_ref2)

ArgumentRequired?Data TypeDescription
array_ref1Ystring or arrayName of first column or first array literal to apply to the function
array_ref2Nstring or arrayName of second column or second array literal to apply to the function

array_ref1, array_ref2

Array literals or names of the array columns whose unique elements you want to derive.

Required?Data TypeExample Value
Yes (at least one)Array literal or column referencemyArray1, myArray2

Example - Simple unique example