Skip to content

Commit

Permalink
Update bigquery.py documentation (#31443)
Browse files Browse the repository at this point in the history
* Update bigquery.py

fix #31372

* fix lint
  • Loading branch information
liferoad authored May 30, 2024
1 parent 90f0209 commit 16d6282
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/python/apache_beam/io/gcp/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16d6282

Please sign in to comment.