Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

D toc

Excerpt

Combines the elements of one array with another, listing all elements of the first array before listing all elements of the second array.

  • Arrays are referenced by column name or as array literals.
  • This function applies two or more columns of Array type only. To concatenate string values, see Merge Transform.
  • Duplicate values are not removed from the generated array.

D s
snippetBasic

Array literal reference example:

D code

derive type:single value:ARRAYCONCAT([["A","B","C"],["C","D","E"]])

Output: Generates a new column with the following array:

Code Block
["A","B","C","C","D","E"]

Column reference example:

D code

derive type:single value:ARRAYCONCAT([array1,array2]) as:'concat_Arrays'

Output: Generates a new concat_Arrays column containing a single array listing all of the elements in array1 followed by all elements from array2 in order.

D s
snippetSyntax

D code

derive type:single value:ARRAYCONCAT(array_ref1,array_ref2)

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

D s lang notes

array_ref1, array_ref2

Array literal or name of the array column whose elements you want to concatenate together. You can concatenate together two or more arrays.

D s
snippetusage

Required?Data TypeExample Value
YesArray literal or column referencemyArray1, myArray2

D s
snippetExamples

Example - Simple concat example

Include Page
EXAMPLE - Nested Functions
EXAMPLE - Nested Functions

D s also
labelnested