Learn how to handle semi-structured data in Firebolt.
STRUCT
data type allows you to group multiple attributes of varying data types into a single logical unit. This is especially useful for modeling nested or hierarchical data. For more information, see STRUCT data type.
STRUCT(key T, value U)
data type where T
is the data type of the keys and U
is the data type of the values. Instead of manipulating two arrays and coordinating indexes, let Firebolt do it for you and enjoy the simpler query syntax.