You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When table schema is updated, it calls BigQuery.updateTable with PATCH method. With bigquery-emulator, it is returning the updated schema, however, google-cloud-bigquery plugin expects tableReference with tableId in the response. Link to the plugin function.
What did you expect to happen?
To have [tableReference][tableId] in the response.
How can we reproduce it (as minimally and precisely as possible)?
Install the python plugin: $ pip install google-cloud-bigquery (tested on latest version, 3.20.1, and old version 2.34.3).
Execute the following code:
fromgoogle.auth.credentialsimportAnonymousCredentialsfromgoogle.cloudimportbigqueryclient=bigquery.Client(client_options={"api_endpoint": "http://0.0.0.0:9050"}, credentials=AnonymousCredentials())
# change project id, dataset name and table nametable_ref=".".join([GCP_PROJECT_ID, DATASET_NAME, TABLE_NAME])
table=client.get_table(table_ref)
# slightly modify `table.schema`table=client.update_table(table, ["schema"])
It will give the following error: KeyError: 'Resource lacks required identity information:["tableReference"]["tableId"]'
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered:
What happened?
When table schema is updated, it calls
BigQuery.updateTable
with PATCH method. With bigquery-emulator, it is returning the updated schema, however,google-cloud-bigquery
plugin expectstableReference
withtableId
in the response. Link to the plugin function.What did you expect to happen?
To have
[tableReference][tableId]
in the response.How can we reproduce it (as minimally and precisely as possible)?
Install the python plugin:
$ pip install google-cloud-bigquery
(tested on latest version, 3.20.1, and old version 2.34.3).Execute the following code:
It will give the following error:
KeyError: 'Resource lacks required identity information:["tableReference"]["tableId"]'
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: