Cannot append to REPEATED field when using client.load_table_from_file
with parquet file
#2008
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
Environment details
google-cloud-bigquery
version: 3.25.0Steps to reproduce
client.load_table_from_file
with a parquet file written from memory to aBytesIO
buffer- If no schema is provided to
bigquery.LoadJobConfig
, the operation fails- If the table schema is provided to
bigquery.LoadJobConfig
, the operation does not raise, but instead incorrectly inserts empty arrays into the tableIssue details
I am unable to use
client.load_table_from_file
with a parquet file to append to an existing table with a REPEATED field.This issue is somewhat similar to #1981, except related to REPEATED fields rather than REQUIRED fields.
Code example
Apologies, in advance that the example is a bit long.
It demonstrates Parquet files written to BytesIO buffers from both Polars and PyArrow unable to be written to a BigQuery table with mode=REPEATED.
Code example
Stack trace
Both the
polars_way
and thepyarrow_way
raise with the error. Here they both are.The text was updated successfully, but these errors were encountered: