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
{{ message }}
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
2.11.0 version breaks retrocompatibility with python-bigquery 1.x branch #477
Run a bigquery job with python-bigquery v 1.28.2 and google-api-core 2.11.0
Stack trace
TypeError: QueryJob._blocking_poll() got an unexpected keyword argument 'retry'
[...]
results = query_job.result() # Waits for job to complete.
File "/usr/local/lib/python3.10/site-packages/google/cloud/bigquery/job.py", line 3230, in result
super(QueryJob, self).result(retry=retry, timeout=timeout)
File "/usr/local/lib/python3.10/site-packages/google/cloud/bigquery/job.py", line 835, in result
return super(_AsyncJob, self).result(timeout=timeout)
File "/usr/local/lib/python3.10/site-packages/google/api_core/future/polling.py", line 256, in result
self._blocking_poll(timeout=timeout, retry=retry, polling=polling)
Note that we had to be very careful in #9 to make sure we only passed retry back to _blocking_poll if an explicit value for retry was passed in. That way that versions of google-cloud-bigquery that don't have support for that retry value won't fail.
Support for the BigQuery v1 branch is ending, as per this comment. Note that the Google OSS Library Breaking Change Policy only provides for a 12-month support window after a new major version of a library is released, and we're beyond that window for BigQuery v1. We encourage you to upgrade to the latest versions of our libraries, and let us know of any problems you encounter.
Activity
tswast commentedon Dec 14, 2022
I suspect a regression with the functionality related to these PRs:
Note that we had to be very careful in #9 to make sure we only passed retry back to
_blocking_pollif an explicit value forretrywas passed in. That way that versions ofgoogle-cloud-bigquerythat don't have support for that retry value won't fail.tswast commentedon Dec 14, 2022
There were unit tests to cover this, so I'm not sure what happened.
tswast commentedon Dec 14, 2022
I see what happened:
python-api-core/tests/unit/future/test_polling.py
Line 232 in a152ed6
The test intended to not have a
retryargument. Now has aretryargument.Edit: Likewise, in addition to
_blocking_pollsimilar logic to avoid passing in an unsupportedretryargument was removed fordone.vam-google commentedon Jan 9, 2023
This bug should be fixed in python-bigquery instead (please just make it handle non-numeric default value) #479
cristianmtr commentedon Apr 18, 2023
I'm also facing this issue. Are there any workarounds?
vchudnov-g commentedon Oct 24, 2023
Support for the BigQuery v1 branch is ending, as per this comment. Note that the Google OSS Library Breaking Change Policy only provides for a 12-month support window after a new major version of a library is released, and we're beyond that window for BigQuery v1. We encourage you to upgrade to the latest versions of our libraries, and let us know of any problems you encounter.