array_value
Creates an ARRAY containing the argument values.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
array_value(1.0::FLOAT, 2.0::FLOAT, 3.0::FLOAT)Result
'[1.0, 2.0, 3.0]'The expression returns FLOAT[3]. 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
array_value(...)Supported signatures (1)
array_value(...: ANY) → ARRAYThe result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
With a missing first argument
array_value(NULL::FLOAT, 2.0::FLOAT, 3.0::FLOAT)'[NULL, 2.0, 3.0]'
Function metadata from DuckDB, used under the MIT license.