Uh oh!
There was an error while loading. Please reload this page.
fix: retry 'job exceeded rate limits' for DDL queries - #1794
Conversation
tswast
left a comment
There was a problem hiding this comment.
Thanks!
I have some feedback regarding testing. I think it may make more sense to follow the pattern I use here, instead:
python-bigquery/tests/unit/test__job_helpers.py
Lines 388 to 447 in 1f96439
It may make sense to also add a test for just the predicate itself:
python-bigquery/tests/unit/test_retry.py
Line 109 in 1f96439
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Tim Swast <swast@google.com>
Uh oh!
There was an error while loading. Please reload this page.
| _, kwargs = calls[2] | ||
| assert kwargs["method"] == "POST" | ||
| assert kwargs["path"].startswith(response_path) |
There was a problem hiding this comment.
This is an interesting one. Not sure why we'd be doing a POST to this path. That'd indicate that we are doing a jobs insert call, which really shouldn't be happening.
There was a problem hiding this comment.
Added a todo statement for the fix in #1797
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nlenepveu
commented
Jan 24, 2024
Thanks @kiraksi! |
Uh oh!
There was an error while loading. Please reload this page.
| from google.cloud.bigquery.client import Client | ||
| from google.cloud.bigquery import _job_helpers | ||
| from google.cloud.bigquery.retry import DEFAULT_JOB_RETRY |
There was a problem hiding this comment.
Import modules not classes / methods.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes#1790 🦕