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 — feat: add BigQuery storage client support to DB API by plamut · Pull Request #36 · googleapis/python-bigquery

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

Conversation

@plamut

@plamut plamut commented Feb 12, 2020 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Closes #16.

The title says it all. Details in the ticket description.

PR checklist:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Sorry, something went wrong.

Uh oh!

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

All reactions
@plamut plamut added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Feb 12, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 12, 2020
tswast
tswast reviewed Feb 12, 2020
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.

General structure LGTM. Replacing self._query_data with an iterable that calls the BQ Storage API under the covers is exactly what I imagined.

Once the PR is ready, let's have @shollyman or someone he delegates to do the final review.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google/cloud/bigquery/dbapi/connection.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/dbapi/connection.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/dbapi/cursor.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/dbapi/cursor.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/dbapi/cursor.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/dbapi/cursor.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/dbapi/cursor.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/dbapi/cursor.py Resolved

Uh oh!

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

@plamut
feat: add BigQueryStorageClient support to DB API
6560183
@plamut
plamut force-pushed the iss-16 branch from cd44040 to d5f7beb Compare February 13, 2020 14:27
plamut added 2 commits February 14, 2020 12:23
@plamut
Use BigQuery Storage client in Cursor if available
ac89c4b
@plamut
Skip BQ storage unit tests in Python 3.8
aa34db4
@plamut
plamut force-pushed the iss-16 branch from d5f7beb to aa34db4 Compare February 14, 2020 12:36
@plamut

plamut commented Feb 14, 2020 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

The coverage failure is due to Python 2.7 unit tests are not run on Kokoro:

Session unit-2.7 skipped: Python interpreter 2.7 not found.

The tests pass just fine locally, and the total coverage is 100%.

All reactions

Sorry, something went wrong.

Uh oh!

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

@plamut
Add system tests for Cursor w/ BQ storage client
91ac424
@plamut
plamut marked this pull request as ready for review February 14, 2020 14:15
@plamut
plamut requested review from shollyman and tswast February 14, 2020 14:16
@plamut
Merge branch 'master' into iss-16
2f15fde
@tseaver
tseaver self-requested a review February 18, 2020 18:16
tseaver
tseaver suggested changes Feb 18, 2020
View reviewed changes
Comment thread google/cloud/bigquery/dbapi/cursor.py Resolved

Uh oh!

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

Comment thread google/cloud/bigquery/dbapi/cursor.py Resolved

Uh oh!

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

Comment thread noxfile.py Resolved

Uh oh!

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

Comment thread tests/unit/test_dbapi_connection.py Resolved

Uh oh!

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

plamut and others added 3 commits February 19, 2020 10:11
@plamut
Add test for Connection ctor w/o BQ storage client
9a444f9
@plamut
Refactor exception handling in Cursor._try_fetch()
58c8850
@plamut @tseaver
Add explicit check against None
36d3557
Co-Authored-By: Tres Seaver <[email protected]>
@googlebot

googlebot commented Feb 19, 2020

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

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

1 similar comment
@googlebot

googlebot commented Feb 19, 2020

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

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

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Feb 19, 2020
@plamut
Merge branch 'iss-16' of github.com:plamut/python-bigquery into iss-16
9cd1dc8
@plamut
plamut requested a review from tseaver February 19, 2020 10:50
plamut
plamut commented Feb 19, 2020
View reviewed changes
Comment thread google/cloud/bigquery/dbapi/cursor.py Resolved

Uh oh!

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

@plamut
Remove redundand word in a comment in cursor.py
79bb393
tseaver
tseaver approved these changes Feb 20, 2020
View reviewed changes
@plamut

plamut commented Feb 20, 2020

Copy link
Copy Markdown
Contributor Author

@tseaver As a co-author of one of the changes, please just appease the CLA bot, thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

shollyman
shollyman approved these changes Feb 20, 2020
View reviewed changes

@shollyman shollyman 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 for this. We'll want to update this from v1beta1->v1 in the near future, not sure how you'd like to track that.

Sorry, something went wrong.

Uh oh!

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

All reactions
@plamut

plamut commented Feb 21, 2020

Copy link
Copy Markdown
Contributor Author

We'll want to update this from v1beta1->v1 in the near future, not sure how you'd like to track that.

@shollyman Track in the sense of the tasks that need to be done for the promotion to GA? A GitHub issue for it would be just fine.

All reactions

Sorry, something went wrong.

Uh oh!

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

@plamut

plamut commented Feb 23, 2020

Copy link
Copy Markdown
Contributor Author

@tseaver Friendly ping, the CLA bot still needs confirmation from you. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Feb 25, 2020

Copy link
Copy Markdown
Contributor

@googlebot I signed it!

All reactions

Sorry, something went wrong.

Uh oh!

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

@shollyman shollyman added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Feb 25, 2020
@googlebot

googlebot commented Feb 25, 2020

Copy link
Copy Markdown

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

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

@plamut
plamut merged commit ba9b2f8 into googleapis:master Feb 25, 2020
@plamut
plamut deleted the iss-16 branch February 25, 2020 18:47
@yan-hic

yan-hic commented Jun 9, 2020

Copy link
Copy Markdown

Can usage for this be updated at https://github.com/mxmzdlv/pybigquery/blob/master/README.rst#usage ?
Not sure how to enable storage API when loading in superset.

All reactions

Sorry, something went wrong.

Uh oh!

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

@yan-hic yan-hic mentioned this pull request Jun 9, 2020
Support of Storage API googleapis/python-bigquery-sqlalchemy#41
Closed
1 of 3 tasks
@yan-hic

yan-hic commented Apr 7, 2021

Copy link
Copy Markdown

To be closed as per googleapis/python-bigquery-sqlalchemy#61 (comment) ?

All reactions

Sorry, something went wrong.

Uh oh!

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

@plamut

plamut commented Apr 13, 2021

Copy link
Copy Markdown
Contributor Author

@yiga2 Sorry, I'm not following? What should be closed, this PR has been merged?

All reactions

Sorry, something went wrong.

Uh oh!

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

@yan-hic

yan-hic commented Apr 13, 2021

Copy link
Copy Markdown

My bad - meant to close googleapis/python-bigquery-sqlalchemy#41

plamut reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@tswast tswast Awaiting requested review from tswast
2 more reviewers
@tseaver tseaver tseaver approved these changes
@shollyman shollyman shollyman 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

cla: yes This human has signed the Contributor License Agreement. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[BigQuery, BigQuery Storage]: Add option to use BigQuery Storage API to download results in BigQuery DB-API

Uh oh!

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

6 participants

@plamut @googlebot @tseaver @yan-hic @tswast @shollyman
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.