Struct / Map Functions
3 functions for reading struct fields and map keys/values. The source column is always the implicit first input.
| Function | Syntax | Parameters | Notes |
|---|---|---|---|
struct_get | struct_get(column, field) | field — required, name of the nested field to extract. | Source column must be a struct type. |
map_keys | map_keys(column) | None. | Returns an array of the map's keys. Source column must be a map type. |
map_values | map_values(column) | None. | Returns an array of the map's values. Source column must be a map type. |