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 — Queries that start at a cursor report that they start at the very beginning until you go to the first element · Issue #204 · googleapis/java-datastore
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
Queries that start at a cursor report that they start at the very beginning until you go to the first element #204Copy link Copy link Closed Labels api: datastoreIssues related to the googleapis/java-datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionA query result from a query that starts at a cursor will say getCursorAfter is actually the default cursor ( This creates complications for testing / resuming a result set that was never iterated. The old Java 8 datastore SDK didn't have this issue. Environment details
Steps to reproduceStart cloud_datastore_emulator on localhost:8081 Code exampleimport com.google.cloud.datastore.*; Datastore ds = DatastoreOptions.newBuilder().setProjectId("project").setHost("localhost:8081").build().getService(); ds.put(Entity.newBuilder(Key.newBuilder("project", "Kind", "name-01").build()).build()); ds.put(Entity.newBuilder(Key.newBuilder("project", "Kind", "name-02").build()).build()); ds.put(Entity.newBuilder(Key.newBuilder("project", "Kind", "name-03").build()).build()); QueryResults<Entity> run = ds.run(Query.newEntityQueryBuilder().setKind("Kind").build()); run.next(); Cursor cursor = run.getCursorAfter(); QueryResults<Entity> run2 = ds.run(Query.newEntityQueryBuilder().setKind("Kind").setStartCursor(cursor).build()); // expected: assert run2.getCursorAfter().equals(cursor); // actual: run2.getCursorAfter() is the default cursor until run2.next() is called Activity
MetadataMetadataAssigneesLabelsapi: datastoreIssues related to the googleapis/java-datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| 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. |