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 — chore: remove workarounds for BQ Storage issue with small result sets by plamut · Pull Request #133 · googleapis/python-bigquery

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

Conversation

@plamut

@plamut plamut commented Jun 12, 2020

Copy link
Copy Markdown
Contributor

Closes #106.

This PR removes workarounds the BQ Storage bug with small anonymous result sets that has been fixed recently, rendering those workarounds obsolete.

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
chore: remove workarounds for BQ Storage issue with small result sets
90c6f92
@plamut plamut added the type: cleanup An internal cleanup or hygiene concern. label Jun 12, 2020
@plamut
plamut requested a review from shollyman June 12, 2020 17:52
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 12, 2020
plamut
plamut commented Jun 12, 2020
View reviewed changes
Comment thread tests/unit/test_job.py
job = self._make_one(self.JOB_ID, self.QUERY, client)

tbl = job.to_arrow()
tbl = job.to_arrow(create_bqstorage_client=False)

@plamut plamut Jun 12, 2020

Copy link
Copy Markdown
Contributor Author

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.

Before this PR, a BigQuery Storage client was automatically created (a default) behind the scenes and actually hit the backend, but only to trigger a 401 Unauthorized error and fall back to the tabledata.list API that uses the (mocked) BigQuery client.

These create_bqstorage_client=False additions ensure that tests behave as before, i.e. using the (mocked) BigQuery client, but without a futile attempt with a real BQ Storage client.

Sorry, something went wrong.

Uh oh!

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

All reactions

@shollyman shollyman Jun 12, 2020

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 clarifying

Sorry, something went wrong.

Uh oh!

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

All reactions
@plamut

plamut commented Jun 12, 2020 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

Some issue started occurring under Python 2.7 all of a sudden:

SyntaxError: Non-ASCII character '\xc3' in file /tmpfs/src/github/python-bigquery/.nox/unit-2-7/lib/python2.7/site-packages/rsa/key.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Seems like the rsa dependency is broken, a new version was released just half an hour ago - https://pypi.org/project/rsa/#history

Edit: Looking at the release notes, it seems that they dropped Python 2.7 support in version 4.1 already, but forgot to tag it as such. We need to pin rsa to an older version...

Edit 2: Will be fixed in #135.

All reactions

Sorry, something went wrong.

Uh oh!

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

shollyman
shollyman approved these changes Jun 12, 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 cleaning this up.

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 tests/unit/test_job.py
job = self._make_one(self.JOB_ID, self.QUERY, client)

tbl = job.to_arrow()
tbl = job.to_arrow(create_bqstorage_client=False)

@shollyman shollyman Jun 12, 2020

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 clarifying

Sorry, something went wrong.

Uh oh!

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

All reactions
plamut added 2 commits June 15, 2020 09:30
@plamut
Fix two typos in docstrings
0b838bb
@plamut
Merge branch 'master' into iss-106
a72f2e8
@plamut
plamut merged commit cb16cfd into googleapis:master Jun 15, 2020
@plamut
plamut deleted the iss-106 branch June 15, 2020 10:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@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: cleanup An internal cleanup or hygiene concern.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Remove workarounds for the BQ Storage API issue with small result sets

Uh oh!

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

3 participants

@plamut @shollyman @googlebot
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.