Database & utility
Scalar
remap_struct()
Map a struct to another struct type, potentially re-ordering, renaming and casting members and filling in defaults for missing values
Reference: DuckDB 2.0.0
Arguments & returns
remap_struct(input, target_type, mapping, defaults)
Scalar
| Overload link | input | target_type | mapping | defaults |
Returns |
|---|---|---|---|---|---|
| #01 | ANY | ANY | ANY | ANY |
ANY |
Example
Haybarn WASM 2.0.0-rc12 · In your browser
Engine example · Run to view results.