Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

test: fix result ordering errors for emulator#81

Merged
larkee merged 2 commits intogoogleapis:masterfrom
larkee:spanner-em-host
May 26, 2020
Merged

test: fix result ordering errors for emulator#81
larkee merged 2 commits intogoogleapis:masterfrom
larkee:spanner-em-host

Conversation

@larkee
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

4 participants