diff --git a/docs/source/src/python/user-guide/io/bigquery.py b/docs/source/src/python/user-guide/io/bigquery.py index 7628213f6695..3b74bb163008 100644 --- a/docs/source/src/python/user-guide/io/bigquery.py +++ b/docs/source/src/python/user-guide/io/bigquery.py @@ -25,12 +25,15 @@ with io.BytesIO() as stream: df.write_parquet(stream) stream.seek(0) + parquet_options = bigquery.ParquetOptions() + parquet_options.enable_list_inference = True job = client.load_table_from_file( stream, destination='tablename', project='projectname', job_config=bigquery.LoadJobConfig( source_format=bigquery.SourceFormat.PARQUET, + parquet_options=parquet_options, ), ) job.result() # Waits for the job to complete