-
Notifications
You must be signed in to change notification settings - Fork 313
GBQ query getting error of '>' not supported between instances of 'int' and 'object' randomly #1612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report. This appears to be a duplicate of this issue: #1459 due to a breaking change introduced in google-api-core package. This should have been fixed in version 3.10 and later of this package, though. |
actually with version google-cloud-bigquery==3.11.3 and google-api-core-2.11.1. the issue happens more freqnently. for reference, with google-cloud-bigquery==3.11.3 and google-api-core-2.11.1, it happen around 240 times a day, with google-cloud-bigquery==3.10 and google-api-core-2.11.1, our log showed it only happen 2 times a day. we have to downgrade the version to 3.10 to reduce the issue frequency. so it seems a different issue? |
@tswast can you provide some update? |
for me, |
Thanks for checking in with the versions. It sounds like there is some part of the breaking change in CC @chalmerlowe |
Yeah, looks like this is another callsite where the new default object representation isn't handled. Another change similar to #1541 is needed for python-bigquery/google/cloud/bigquery/client.py Lines 1897 to 1898 in 3e021a4
|
Googlers, the internal support issue is b/290415719 for additional context. @moveingsun I'm sorry you didn't see a resolution through support, it would have been faster if they had routed us your ticket internally, but that's neither here nor there now (we'll suggest some process changes internally, ha). |
Changes to python-api-core can in certain cases cause timeout to be represented as a literal python base object type. This CL adjusts logic that selects from multiple timeout values to better handle this case, which previously assumed either a None or scalar value being present. Fixes: googleapis#1612
* fix: relax timeout expectations Changes to python-api-core can in certain cases cause timeout to be represented as a literal python base object type. This CL adjusts logic that selects from multiple timeout values to better handle this case, which previously assumed either a None or scalar value being present. Fixes: #1612 * augment testing * blacken and lint fixes * unused import
As a user, I'm experiencing this issue and I'm not sure what the fix / workaround is. Please advise. |
A question came in to me, but is not reflected here (likely cause it is closed). To answer that question: this should be fixed in version 3.12.0+, which was released in October 2023. |
hi folks, we have a service that run hundreds of thousands GBQ query each day using python client. And recently I've notice the GBQ client fail randomly with error msg "'>' not supported between instances of 'int' and 'object' randomly", which seems to be an issue on client code. And the error just appear randonly. I've opened a support ticket in GCP console, but the conversation there get us nothing and i have to report the issue here, can anyone help me to understand what could cause this issue and how to get it fixed?
Environment details
google-cloud-bigquery
version: 3.10.0 and aboveSteps to reproduce
Unable to reproduce, happen randomly in our code.
Code example
Stack trace
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: