I want to upload JSON data to a BigQuery table. The JSON structure is as follows:
{
a: [1,2,3]
}
But I am getting this error: Array specified for non-repeated field a
Here is a DDL for table that accepts that JSON structure:
create table `sample_table` (
a ARRAY<INT64>
);
Note that:
a, Type INTEGER and Mode REPEATED.If you are using the API, the JSON representation of the table's schema may look like this:
{
"fields":[
{
"name":"a",
"type":"INTEGER",
"mode":"REPEATED",
<...>
}
]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With