Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

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

perf: use getQueryResults from DB-API#375

Merged
steffnay merged 1 commit into
googleapis:mastergoogleapis/python-bigquery:masterfrom
tswast:issue362-dbapitswast/python-bigquery:issue362-dbapiCopy head branch name to clipboard
Nov 10, 2020
Merged

perf: use getQueryResults from DB-API#375
steffnay merged 1 commit into
googleapis:mastergoogleapis/python-bigquery:masterfrom
tswast:issue362-dbapitswast/python-bigquery:issue362-dbapiCopy head branch name to clipboard

Conversation

@tswast

@tswast tswast commented Nov 6, 2020

Copy link
Copy Markdown
Contributor

I suspect list_rows (tabledata.list) was being called directly
due to no page_size parameter on QueryJob.result at the time.

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:

  • 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)

Towards #362 🦕

I suspect `list_rows` (`tabledata.list`) was being called directly
due to no `page_size` parameter on `QueryJob.result` at the time.
@tswast tswast requested review from a team and pmakani November 6, 2020 15:25
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Nov 6, 2020
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 6, 2020
@tswast tswast mentioned this pull request Nov 6, 2020
7 tasks
@tswast tswast requested review from steffnay and removed request for pmakani November 6, 2020 15:32
@steffnay steffnay merged commit 30de15f into googleapis:master Nov 10, 2020
gcf-merge-on-green Bot pushed a commit that referenced this pull request Nov 12, 2020
The `is_dml` logic is not needed now that we moved to `getQueryResults` instead of `tabledata.list` (#375).

Previously, the destination table of a DML query would return a non-null value that was unreadable or would return nonsense with DML (and some DDL) queries. 

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:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery/issues/new/choose) 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)

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

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.