Skip to content
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

test: fix result ordering errors for emulator #81

Merged
merged 2 commits into from May 26, 2020

Conversation

larkee
Copy link
Contributor

@larkee larkee commented May 13, 2020

While running the ITs against the Cloud Spanner emulator there were failures relating to result ordering. Spanner doesn't guarantee an order for its results unless specified by the ORDER BY clause. The emulator deliberately shuffles the results so users do not rely on the ordering without ORDER BY.

This PR updates a test to use ORDER BY to fix an emulator failure. However, since ORDER BY is not supported by partitioned queries, a set of the results is created for comparison in that test instead.

@larkee larkee added the api: spanner Issues related to the googleapis/python-spanner API. label May 13, 2020
@larkee larkee requested a review from hengfengli May 13, 2020 07:24
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 13, 2020
@hengfengli
Copy link

@larkee The kokoro test fails. Please fix it so that I can review this PR. Thanks.

@larkee larkee added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 14, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 14, 2020
Copy link

@hengfengli hengfengli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@larkee larkee merged commit f33c866 into googleapis:master May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants