The table gets loaded using MERGE query from a temporary table.
Actual behavior
AttributeError: Client has no attribute 'query'
This is probably caused by the fact that there are two client factories. If gcs_stage method is selected, the factory returns google.cloud.storage.Client instance instead of google.cloud.bigquery.Client instance and is therefore unable to run queries.
According to the README this should be supported. Is this something you would like to address? Do you prefer if I came up with a PR?
Steps to reproduce
Set
method
togcs_stage
andupsert
totrue
.Expected behavior
The table gets loaded using MERGE query from a temporary table.
Actual behavior
AttributeError: Client has no attribute 'query'
This is probably caused by the fact that there are two client factories. If
gcs_stage
method is selected, the factory returnsgoogle.cloud.storage.Client
instance instead ofgoogle.cloud.bigquery.Client
instance and is therefore unable to run queries.According to the README this should be supported. Is this something you would like to address? Do you prefer if I came up with a PR?