You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create Client.write_table and Client.sink_table methods for DataFrame and LazyFrame inputs, respectively #18
fromgoogle.cloudimportbigqueryclient=bigquery.Client()
# Write DataFrame to stream as parquet file; does not hit diskwithio.BytesIO() asstream:
df.write_parquet(stream)
stream.seek(0)
parquet_options=bigquery.ParquetOptions()
parquet_options.enable_list_inference=Truejob=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
changed the title [-]Create a `write_bigquery_table` and `sink_bigquery_table` methods for DataFrame and LazyFrame inputs, respectively[/-][+]Create `Client.write_table` and `Client.sink_table` methods for DataFrame and LazyFrame inputs, respectively[/+]on Aug 26, 2026
Activity
[-]Create a `write_bigquery_table` and `sink_bigquery_table` methods for DataFrame and LazyFrame inputs, respectively[/-][+]Create `Client.write_table` and `Client.sink_table` methods for DataFrame and LazyFrame inputs, respectively[/+]