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


##########
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:
   From what I have found online, you can tell if a given table is partitioned 
by performing a query: 
https://stackoverflow.com/questions/44881100/is-there-a-metadata-table-to-check-if-the-table-in-bigquery-is-partitioned
   
   However, I did not find another way to tell if the destination itself is a 
partition of a table. BigQuery recognizes the `$` as a partition decorator: 
https://cloud.google.com/bigquery/docs/managing-partitioned-table-data#partition_decorators



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to