Skip to content
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

bug: add type checking to prevent object issues #1649

Closed
wants to merge 1 commit into from

Conversation

chalmerlowe
Copy link
Contributor

This fix attempts to overcome a backwards incompatible fix related to how python-api-core handles default timeout values and how bigquery handles default timeout values.

Namely:

the default timeout value in python-api-core is a Python object()
python-bigquery expects a value of None or a numeric value
This fix checks to see if the value being passed in is an object(), and if so, converts it to a NoneType value of None.

A similar fix can be found in PR: #1541

Fixes #1612 🦕

@chalmerlowe chalmerlowe requested review from a team as code owners August 21, 2023 13:49
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: bigquery Issues related to the googleapis/python-bigquery API. labels Aug 21, 2023
@chalmerlowe
Copy link
Contributor Author

The following tests are failing due to a known issue related to an incompatibility with Pandas 2.0 that is being resolved in an alternate PR: #1616. These two failures should not preclude this PR from being merged.

  • Kokoro Prerelease Dependencies
  • Kokoro prerelease-deps-3.11

On the other hand... I don't have a resolution for the issues in Kokoro system-3.11 yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GBQ query getting error of '>' not supported between instances of 'int' and 'object' randomly
1 participant