list_value
Create a list from its arguments.
Also available as list_pack.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
list_value(4, 5, 6)Result
'[4, 5, 6]'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_value(any, ...)- any
- Any value
Supported signatures (2)
list_value() → "NULL"[]
list_value(any: T, ...: T) → T[]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_value(NULL::INTEGER, 5, 6)'[NULL, 5, 6]'
Function metadata from DuckDB, used under the MIT license.