Skip to content

fix: Using end_cursor instead of skipped_cursor in Iterator to fix rare bug. #552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

gkevinzheng
Copy link
Contributor

@gkevinzheng gkevinzheng commented Jul 23, 2024

Using end_cursor instead of skipped_cursor to fix #547. There are some rare edge cases where skipped_cursor returns an empty string with still more things to skip. Switching to end_cursor resolves this issue. Also does not reintroduce the bug that was fixed in #18, as in those cases, skipped_cursor and end_cursor are the same.

Integration tests will be coming soon, maybe in a future PR, as making a dataset that consistently replicates this issue is still under investigation.

@gkevinzheng gkevinzheng requested review from a team as code owners July 23, 2024 19:49
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: datastore Issues related to the googleapis/python-datastore API. labels Jul 23, 2024
@gkevinzheng gkevinzheng merged commit 4982f9a into main Jul 30, 2024
28 checks passed
@gkevinzheng gkevinzheng deleted the query-end-cursor branch July 30, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the googleapis/python-datastore API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug querying with offset
3 participants