GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bug: fixes discrepancy btwn python-api-core & bigquery re object defa… by chalmerlowe · Pull Request #1541 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@chalmerlowe

@chalmerlowe chalmerlowe commented Apr 3, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

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.

Fixes #1459 🦕

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@chalmerlowe
bug: fixes discrepancy btwn python-api-core & bigquery re object defa…
20caba2
…ult timeout
@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 Apr 3, 2023
chalmerlowe and others added 24 commits April 13, 2023 15:52
@chalmerlowe
Fix: loosen ipywidget dependency (#1504)
ff0318c
* fix: updates ipywidget dependency

* fix: updates ipywidget version number
@release-please @chalmerlowe
chore(main): release 3.6.0 (#1490)
9362716
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@jumbosushi @chalmerlowe
docs: Remove < 3.11 reference from README (#1502)
9b58418
@gcf-owl-bot @chalmerlowe
chore(python): upgrade gcp-releasetool in .kokoro [autoapprove] (#1508)
0005519
Source-Link: googleapis/synthtool@5f2a608
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@shobsi @chalmerlowe
feat: add connection_properties and create_session to `LoadJobCon…
81ef7f4
…fig` (#1509)

* feat: added `connection_properties` and `create_session` in load job
@renovate-bot @parthea
@gcf-owl-bot @chalmerlowe
chore(deps): update all dependencies (#1501)
2b423b7
* chore(deps): update all dependencies

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@renovate-bot @chalmerlowe
chore(deps): update all dependencies (#1513)
9622366
@chelsea-lin @chalmerlowe
feat: add default_query_job_config property and property setter to BQ…
82f2a51
… client (#1511)

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:
- [x] Make sure to open an issue as a [feature request](https://togithub.com/googleapis/python-bigquery/issues/1512) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)

Fixes 
- [feature request](https://togithub.com/googleapis/python-bigquery/issues/1512)🦕
- [internal bug](https://b.corp.google.com/issues/271044948)
@renovate-bot @chalmerlowe
chore(deps): update all dependencies (#1514)
b1e1a44
@renovate-bot @chalmerlowe
chore(deps): update dependency charset-normalizer to v3.1.0 (#1518)
df75775
@release-please @chalmerlowe
chore(main): release 3.7.0 (#1507)
8a7cab3
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@tswast @chalmerlowe
feat: expose configuration property on CopyJob, ExtractJob, LoadJob, …
b3600d9
…QueryJob (#1521)

* feat: expose configuration property on CopyJob, ExtractJob, LoadJob, QueryJob

Note for google-cloud-bigquery developers: This also refactors these classes so
that `_set_properties` does not modify the `_properties` dictionary in-place.
Doing so was also mutating the request object, making it difficult to debug
what request was _actually_ sent. Before this change, many tests hallucinated
that the request was always equal to the response.

* E           google.api_core.exceptions.BadRequest: 400 Clone operation with write disposition WRITE_TRUNCATE is not supported. Please try again with WRITE_EMPTY.
@gcf-owl-bot @chalmerlowe
chore(deps): Update nox in .kokoro/requirements.in [autoapprove] (#1527)
0963cc5
Source-Link: googleapis/synthtool@92006bb
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@chelsea-lin @chalmerlowe
feat: add default LoadJobConfig to Client (#1526)
18af7c5
@chelsea-lin @chalmerlowe
feat: add bool, int, float, string dtype to to_dataframe (#1529)
9f5e257
@tswast @chalmerlowe
fix: loosen ipywidgets restrictions further to address ipython compat…
80f1ad2
…ibility issues (#1531)

* fix: loosen ipywidgets restrictions further to address ipython compatibility issues

* include ipywidgets in prerelease deps

* show all package versions

* add ipykernel dependency

* ipykernel in noxfile

* oops
@release-please @chalmerlowe
chore(main): release 3.8.0 (#1525)
202b603
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@chelsea-lin @chalmerlowe
fix: keyerror when the load_table_from_dataframe accesses a unmapped …
1fef2fc
…dtype dataframe index (#1535)
@r1b @tswast @chalmerlowe
feat: expose query job on dbapi cursor (#1520)
2165b7b
Co-authored-by: Tim Swast <[email protected]>
@release-please @chalmerlowe
chore(main): release 3.9.0 (#1537)
5362795
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@tswast @chalmerlowe
chore: update tests to be compatible with pandas 2.0 (#1538)
6edf1ef
* chore: update tests to be compatible with pandas 2.0

* use StringDtype without storage argument

* avoid Float64Dtype on older pandas
@renovate-bot @chalmerlowe
chore(deps): update all dependencies (#1522)
985bae5
@chalmerlowe
chore: updates minimum version of bqstorage (#1542)
b7548d6
* chore: updates minimum version of bqstorage

* removes unneeded test

* updates linting, removes unneeded comment
@chalmerlowe
updates conditional checks, comments, adds test
5d2c2d2
@product-auto-label product-auto-label Bot added size: xl Pull request size is extra large. and removed size: xs Pull request size is extra small. labels Apr 13, 2023
@chalmerlowe
Merge branch 'main' into correct-timeout-type
c3d629f
@product-auto-label product-auto-label Bot added size: s Pull request size is small. and removed size: xl Pull request size is extra large. labels Apr 13, 2023
chalmerlowe added 3 commits April 17, 2023 16:25
@chalmerlowe
Removes test, adds pragma no cover
a9c2c48
@chalmerlowe
Removes test
b8033f3
@chalmerlowe
fix linting error
8409a23
@chalmerlowe
chalmerlowe marked this pull request as ready for review April 18, 2023 14:24
@chalmerlowe
chalmerlowe requested review from a team and prash-mi April 18, 2023 14:24
tswast
tswast approved these changes Apr 18, 2023
View reviewed changes

@tswast tswast left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

It seems like there might still be more we need to do to handle the changes in googleapis/python-api-core#479 but this looks good to me as a stopgap.

(P.S. My blood boils a bit reading that discussion again. I just wish they could admit they made some breaking changes.)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chalmerlowe reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@chalmerlowe
chalmerlowe merged commit 9d8409b into main Apr 18, 2023
@chalmerlowe
chalmerlowe deleted the correct-timeout-type branch April 18, 2023 15:09
@shollyman shollyman mentioned this pull request Aug 14, 2023
GBQ query getting error of '>' not supported between instances of 'int' and 'object' randomly #1612
Closed
@chalmerlowe chalmerlowe mentioned this pull request Aug 21, 2023
bug: add type checking to prevent object issues #1649
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@prash-mi prash-mi Awaiting requested review from prash-mi
1 more reviewer
@tswast tswast tswast approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: s Pull request size is small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

PollingFuture default timeout value object() incompatible with QueryJob typeguard in _reload_query_results

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@chalmerlowe @tswast @jumbosushi @shobsi @renovate-bot @chelsea-lin @r1b
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.