You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/08/26 16:20:12 UTC

[GitHub] [beam] johnjcasey commented on a diff in pull request #21757: Handling invalid WriteToBigQuery use case

johnjcasey commented on code in PR #21757:
URL: https://github.com/apache/beam/pull/21757#discussion_r956205223


##########
sdks/python/apache_beam/io/gcp/bigquery_file_loads.py:
##########
@@ -725,6 +725,13 @@ def process(self, element):
     partitions.append(latest_partition.files)
 
     if len(partitions) > 1:
+      # Copy jobs with BigQuery API do not support having
+      # a table partition as the destination
+      if '$' in destination:

Review Comment:
   Is there a better way to identify that the table is partitioned beyond looking for a $?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org