So I am uploading this table to BigQuery with
job_config = bigquery.LoadJobConfig()
job_config.source_format = bigquery.SourceFormat.PARQUET
job_config.write_disposition = "WRITE_TRUNCATE"
pq_opt = ParquetOptions()
pq_opt.enable_list_inference = True
job_config.parquet_options = pq_opt
job = self.client.load_table_from_file(source_file, table_ref, job_config=job_config)
where say,I have a pa.schema with entries of the type:
("image_id", pa.list_(pa.string())),
And as suggested in this question I use enable_list_inference. Before using enable_list_inference the schema in BQ looks like:
And after I use it I get:
So what's the reason I lose the list part but not the item part? I am passing a normal data frame with lists in some rows. How can I ditch the .item part and just have a column of REPEATED entries?