GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — ISSUE-41: Support storage api by alonme · Pull Request #61 · googleapis/python-bigquery-sqlalchemy
This repository was archived by the owner on May 16, 2026. It is now read-only.
Conversation
Contributor
closes #41
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
alonme
force-pushed
the
support-storage-api
branch
from
e947734 to
2149ba4
Compare
alonme
commented
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure what should be done concerning this.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is expected. googleapis/python-bigquery#55 updates the DB API implementation to use the Arrow wire format, but I believe hasn't been released yet.
Some thoughts:
How about we try to make these optional dependencies (extras) for now and revisit once there have been a few releases with Arrow support in the BQ DB-API?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See dev_requirements.txt comment
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
tswast
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! A few comments. I think we need to make the BigQuery Storage API an optional dependency (at least for now).
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is expected. googleapis/python-bigquery#55 updates the DB API implementation to use the Arrow wire format, but I believe hasn't been released yet.
Some thoughts:
How about we try to make these optional dependencies (extras) for now and revisit once there have been a few releases with Arrow support in the BQ DB-API?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe the Also, if we make the BQ Storage library an "extra", then let's catch any import errors to make this an optional dependency.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
alonme
force-pushed
the
support-storage-api
branch
from
e6cbc1f to
47d0310
Compare
alonme
commented
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the module doesn't work with anything below that ( also in master)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was an error while loading. Please reload this page.
It's actually free to download results from query results tables and can be used with BigQuery Sandbox, so it shouldn't make a difference regarding pricing.
(from https://cloud.google.com/bigquery/pricing#storage-api) It is an extra API to enable and extra packages to install, so there will certainly be some users who aren't able to use it. 🤔 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
So what do we want to do with this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looking at the DB-API docs, it looks like it's not actually possible to explicitly disable the BQ Storage API with the DB-API. That makes setting an option to False a bit misleading. If we do want to proceed with this PR, we should file an issue on https://github.com/googleapis/python-bigquery to have a way to disable using the BQ Storage API.
Probably worth waiting to see if folks have trouble with the current default behavior before filing that, though.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if parse_version(bigquery.__version__) >= Version("1.26.0"): | ||
| try: | ||
| storage_client = bigquery_storage_v1.BigQueryReadClient(credentials=credentials) | ||
| clients.append(storage_client) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Since bqstorage_client is an optional argument to connect(), we should probably be using the dictionary for this rather than appending to the list of positional arguments. (In fact, maybe we should do the same for the BigQuery client object, too)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing, since there doesn't seem to be demand for turning off the BigQuery Storage API support and that API is now used by default. Thank you for your investigation and work on this @alonme! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Opened googleapis/python-bigquery#1920. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Support of Storage API
There was an error while loading. Please reload this page.