From 16d62827551170c7af104995327ba88ddc1fcb88 Mon Sep 17 00:00:00 2001 From: liferoad Date: Wed, 29 May 2024 20:03:39 -0400 Subject: [PATCH] Update bigquery.py documentation (#31443) * Update bigquery.py fix #31372 * fix lint --- sdks/python/apache_beam/io/gcp/bigquery.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdks/python/apache_beam/io/gcp/bigquery.py b/sdks/python/apache_beam/io/gcp/bigquery.py index a4d710b1288b0..caeed6b7b9b7d 100644 --- a/sdks/python/apache_beam/io/gcp/bigquery.py +++ b/sdks/python/apache_beam/io/gcp/bigquery.py @@ -283,7 +283,8 @@ def compute_table_name(row): def chain_after(result): try: # This works for FILE_LOADS, where we run load and possibly copy jobs. - return (result.load_jobid_pairs, result.copy_jobid_pairs) | beam.Flatten() + return (result.destination_load_jobid_pairs, + result.destination_copy_jobid_pairs) | beam.Flatten() except AttributeError: # Works for STREAMING_INSERTS, where we return the rows BigQuery rejected return result.failed_rows