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.
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 code |
---|
derive type:single value:ARRAYCONCAT(array_ref1,array_ref2) |
Argument | Required? | Data Type | Description |
---|
array_ref1 | Y | string or array | Name of first column or first array literal to apply to the function |
array_ref2 | Y | string or array | Name of second column or second array literal to apply to the function |
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.
Required? | Data Type | Example Value |
---|
Yes | Array literal or column reference | myArray1 , myArray2 |
Example - Simple concat example
Include Page |
---|
| EXAMPLE - Nested Functions |
---|
| EXAMPLE - Nested Functions |
---|
|