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 — Fix #439: split query vs. iterator apart. by tseaver · Pull Request #487 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Jan 3, 2015

Copy link
Copy Markdown
Contributor

Split Query (abstract constraints) from excution/iteration (cursor, etc.)

Also, rip out the protobuf attributes: doing the ongoing bookkeeping on them was painful (and a bug magnet). Instead, build the protobuf when we need it (just before fetching data), using values from both the query and the iterator.

Fixes #439.

Sorry, something went wrong.

Uh oh!

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

All reactions
tseaver added 4 commits January 2, 2015 20:11
@tseaver
Don't rely on 'Query.to_protobuf' to test connection.
50e7e10
@tseaver
Rip out 'dataset.query' factory.
9cfb5b0
Type-checking the 'dataset' argument to 'Query' introduced a cycle.
@tseaver
Split 'Query' (abstract constraints) from excution/iteration (cursor,…
d74a02d
… etc.)

Also, rip out the protobuf attributes:  doing the ongoing bookkeeping on
them was painful (and a bug magnet).  Instead, build the protobuf when
we need it (just before fetching data), using values from both the query
and the iterator.

Fixes #439.
@tseaver
Accomodate regression tests to new query-iterator split.
539c418
@coveralls

coveralls commented Jan 3, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 539c418 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed Jan 3, 2015
View reviewed changes
Comment thread gcloud/datastore/query.py Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@tseaver
(Temporarily) restore top-level dataset import.
4645b72
It will go away when #477 lands.

See:
https://github.com/tseaver/gcloud-python/commit/d74a02d93950e27b35f6e9fbbec217ce68874a2b#commitcomment-9141844.
@coveralls

coveralls commented Jan 5, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 4645b72 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver
Note discrepancy btwn protobuf spec and current implementation.
72a9520
See:
https://github.com/tseaver/gcloud-python/commit/d74a02d93950e27b35f6e9fbbec217ce68874a2b#commitcomment-9141854.
@coveralls

coveralls commented Jan 5, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 72a9520 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver
Move helper function after class defs.
537e868
Fix typo.

See:
#487 (comment)
#487 (comment)
@coveralls

coveralls commented Jan 5, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 537e868 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver added 2 commits January 5, 2015 17:19
@tseaver
Add coverage for out-of-bounds enum.
9c37ad8
See:
#487 (comment).
@tseaver
Appease lint.
704f115
@coveralls

coveralls commented Jan 5, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 704f115 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver mentioned this pull request Jan 5, 2015
Add keys function to Query. #466
Closed
tseaver added 2 commits January 5, 2015 17:31
@tseaver
Typo.
0aeb691
@tseaver
Rip out 'Query.clone' method.
2832ce5
Also, remove other mentions of cloning queries on write.
@coveralls

coveralls commented Jan 5, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 2832ce5 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Jan 5, 2015

Copy link
Copy Markdown
Contributor

Only thing left to resolve is the discussion of _Iterator's publicness? Am I missing something?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver
Make query iterator class public.
2516ff8
See:
#487 (comment)
@coveralls

coveralls commented Jan 6, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 2516ff8 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Jan 6, 2015

Copy link
Copy Markdown
Contributor

Great. LGTM. We are good to merge (unless anything comes to mind).

#466 likely needs to be re-done now? Also the absence of _clone makes it more difficult to do something like #466

We can discuss there.

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver added a commit that referenced this pull request Jan 6, 2015
@tseaver
Merge pull request #487 from tseaver/439-split_query_iterator
9142051
Fix #439: split query vs. iterator apart.
@tseaver
tseaver merged commit 9142051 into googleapis:master Jan 6, 2015
@tseaver
tseaver deleted the 439-split_query_iterator branch January 6, 2015 01:00
@dhermes

dhermes commented Jan 6, 2015

Copy link
Copy Markdown
Contributor

w00t! @tseaver Can you give #485 a look? I'll rebase the PRs in #477 and ping you.

All reactions

Sorry, something went wrong.

Uh oh!

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

This was referenced Jan 6, 2015
Address first part of 477: Implements datastore.set_default_connection. #478
Merged
There is no Query.ancestor accessor. #431
Closed
Query.fetch() w/o limit returns different results than w/ large limit. #491
Closed
Smooth out API surfaces before M1 #336
Closed
@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Dec 31, 2015
atulep pushed a commit that referenced this pull request Apr 3, 2023
@release-please
chore(main): release 2.17.2 (#487)
01b9725
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request Apr 6, 2023
@release-please
chore(main): release 2.17.2 (#487)
5e2371a
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request Apr 6, 2023
@release-please
chore(main): release 2.17.2 (#487)
453d039
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request Apr 18, 2023
@release-please
chore(main): release 2.17.2 (#487)
d5a37a4
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Aug 15, 2023
@renovate-bot
chore(deps): update dependency google-cloud-dialogflow-cx to v1.16.0 (#…
d5faeaa
…487)
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
@renovate-bot @parthea
chore(deps): update dependency pytest to v7.1.1 (#487)
922cf02
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Sep 22, 2023
@release-please
chore(main): release 3.12.0 (#487)
f602d7a
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
@release-please
chore(main): release 5.0.2 (#487)
1ab4889
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
docs: Fix formatting of request arg in docstring (#487)
76a5d51
* docs: Fix formatting of request arg in docstring

chore: Update gapic-generator-python to v1.9.1
PiperOrigin-RevId: 518604533

Source-Link: googleapis/googleapis@8a085ae

Source-Link: googleapis/googleapis-gen@b2ab4b0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9

* 🦉 Updates from OwlBot post-processor

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

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 22, 2023
@release-please
chore(main): release 2.17.2 (#487)
4b6969a
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 18, 2025
@renovate-bot @gcf-owl-bot @tswast
deps: allow pyarrow 7.0 (#487)
a8e1c88
* 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

* Update setup.py

* limit pandas to 3.8

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tim Swast <[email protected]>
parthea pushed a commit that referenced this pull request Sep 18, 2025
@release-please
chore(main): release 0.17.2 (#490)
1c1c431
🤖 I have created a release *beep* *boop*
---


### [0.17.2](googleapis/python-bigquery-pandas@v0.17.1...v0.17.2) (2022-03-02)


### Dependencies

* allow pyarrow 7.0 ([#487](googleapis/python-bigquery-pandas#487)) ([39441b6](googleapis/python-bigquery-pandas@39441b6))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
parthea added a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot @parthea
build(python): release script update (#487)
041033a
* build(python): release script update

Source-Link: googleapis/synthtool@71a7297
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e8dcfd7cbfd8beac3a3ff8d3f3185287ea0625d859168cc80faccfc9a7a00455

* see googleapis/synthtool#2008

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea added a commit that referenced this pull request Nov 24, 2025
@parthea
chore: fix typos (#487)
b1bfb47
* chore: fix typos

* more typos

* address review feedback

* grammar
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
chore(python): exclude setup.py in renovate config (#487)
5acdc4e
Source-Link: googleapis/synthtool@56da63e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:993a058718e84a82fda04c3177e58f0a43281a996c7c395e0a56ccc4d6d210d7
parthea pushed a commit that referenced this pull request Nov 24, 2025
@tseaver
fix: handle empty last chunk correctly in 'Query._chunkify' (#489)
d596c04
Closes #487.
Supersedes #488.
parthea pushed a commit that referenced this pull request Nov 26, 2025
@release-please
chore: release 1.14.0 (#487)
7590209
* updated CHANGELOG.md [ci skip]

* updated setup.cfg [ci skip]

* updated setup.py [ci skip]

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 2, 2026
@plamut
tests: fix flakiness in connection cleanup test (#487)
95d2857
parthea pushed a commit that referenced this pull request Mar 6, 2026
@mf2199 @c24t
chore: Code refactoring to follow common Google API scheme - Stage I (#…
73b10d3
…487)
parthea pushed a commit that referenced this pull request Mar 9, 2026
@olavloite
docs: fix readme typo (#487)
ff81fa8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

api: datastore Issues related to the Datastore API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Split query specification (kind, filter, ancestor, etc.) from query execution (results, cursor, more_results)

Uh oh!

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

3 participants

@tseaver @coveralls @dhermes
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.