Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r097

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 lang vs sql

D s
snippetBasic

Array literal reference example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:arrayconcat([["A","B","C"],["C","D","E"]])

arrayconcat([["A","B","C"],["C","D","E"]])


Output:
Generates the following array:

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

Column reference example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:arrayconcat([array1,array2]) as:'concat_Arrays'

arrayconcat([array1,array2])


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

D s
snippetSyntax

D lang syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value:arrayconcat(array_ref1,array_ref2)

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 conc atenate 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