Learn how to load Parquet data into Firebolt.
ARRAY(<data_type>)
notation, where <data type>
is the Firebolt data type corresponding to the data type of the field in Parquet.
CREATE EXTERNAL TABLE
queries are demonstrated below.
hashtags
, contains any number of another group, bag
. This is the top grouping element.bag
groups each contain a single, optional group, array_element
.array_element
group contains a single, optional field, s
.some_value
contains a value that is a TEXT
type (in binary primitive format).CREATE EXTERNAL TABLE
example below creates a column in an external table from the Parquet schema shown in the example above. The column definition uses the top level grouping hashtags
followed by the field some_value
. Intermediate nesting levels are omitted.
ARRAY(TEXT)
type that you defined in the external table in step 1. The example below demonstrates this for a fact table.
INSERT
statement that selects the array values from Parquet data files using the external table column definition in step 1, and then inserts them into the specified fact table column, some_value
.
ARRAY(TEXT)
, use a single top-level field name.context
, is a group of mappings that contains any number of the group key_value
.key_value
groups each contain a required field, key
, which contains the key name as a TEXT
. Each group also contains an optional field value
, which contains the value as a TEXT
corresponding to the key name in the same key_value
group.CREATE EXTERNAL TABLE
example below demonstrates this.
ARRAY(TEXT)
types that you defined in the external table in step 1. The example below demonstrates this for a fact table.
INSERT INTO
statement that selects the array values from Parquet data files using the external table column definition in step 1, and inserts them into the specified fact table columns, my_parquet_array_keys
and my_parquet_array_values
.