JOIN_ARRAYS
Joins any number of arrays by index using a MessageFormat pattern.
Syntax
Arguments
Name | Type | Description | Default Value |
---|---|---|---|
formatString | string | The format string where {n} prints the n'th input. For example, the pattern '{0}.{0}.{1}' on the inputs 'a' and 'b' will result in the string 'a.a.b' | null |
inputs# | any |
Returns
Returns a string
value.
Examples
formatString | inputs1 | inputs2 | inputs3 | Output |
---|---|---|---|---|
'{0} {1} is {2} years old' | array['John', 'Jane'] | array['Smith', 'Johnson'] | array[35, 32] | [ |
'{0}:{1}' | array['red', 'green', 'blue', 'luminosity'] | array[255, 255, 0] | [ |
Transformation job example
SQL
Query result
formatString | inputs1[] | inputs2[] | inputs3[] | Output |
---|---|---|---|---|
'{0} {1} is {2} years old' | array['John', 'Jane'] | array['Smith', 'Johnson'] | array[35, 32] | [ |
Last updated