list_concat
Join lists into one list. Missing inputs are skipped, while the || operator returns a missing value if either input is missing.
Also available as array_cat, array_concat, list_cat.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
list_concat([2, 3], [4, 5, 6], [7])Result
'[2, 3, 4, 5, 6, 7]'The expression returns INTEGER[]. Formula stores it as VARCHAR in this example. To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
list_concat(...)Supported signatures (1)
list_concat(...: ANY[]) → ANY[]The result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
With a missing first argument
list_concat(NULL::INTEGER[], [4, 5, 6], [7])'[4, 5, 6, 7]'
Function metadata from DuckDB, used under the MIT license.