struct_concat
Merge several structs into one.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
struct_concat(struct_pack(i := 4), struct_pack(s := 'string'))Result
'{'i': 4, 's': string}'The expression returns STRUCT(i INTEGER, s VARCHAR). 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
struct_concat(...)Supported signatures (1)
struct_concat(...: ANY) → STRUCTThe result type can depend on the input types. See DuckDB for the full argument rules.
Function metadata from DuckDB, used under the MIT license.