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

fix(spanner/spannertest): fix ORDER BY combined with SELECT aliases #3043

Merged
merged 1 commit into from Oct 18, 2020

Conversation

@dsymonds
Copy link
Contributor

@dsymonds dsymonds commented Oct 18, 2020

This was broken due to the ORDER BY implementation that was a bit of a
hack. Replace that hack with a more explicit evaluation of the ORDER BY
sort keys, which also removed a duplicate chunk of row sorting code.

This also required a restructuring of how locking works during an
evaluation, which cleaned up some other code.

Also include a minor revision to README.md.

This was broken due to the ORDER BY implementation that was a bit of a
hack. Replace that hack with a more explicit evaluation of the ORDER BY
sort keys, which also removed a duplicate chunk of row sorting code.

This also required a restructuring of how locking works during an
evaluation, which cleaned up some other code.
@dsymonds dsymonds requested a review from olavloite Oct 18, 2020
@dsymonds dsymonds requested a review from skuruppu as a code owner Oct 18, 2020
@google-cla google-cla bot added the cla: yes label Oct 18, 2020
Copy link
Collaborator

@olavloite olavloite left a comment

LGTM, with a suggestion on adding support for ORDER BY on aliases.

Loading

spanner/spannertest/db_query.go Show resolved Hide resolved
Loading
@dsymonds dsymonds merged commit 89a9df5 into googleapis:master Oct 18, 2020
3 checks passed
Loading
@dsymonds dsymonds deleted the spannertest-order-by branch Oct 18, 2020
dsymonds added a commit to dsymonds/google-cloud-go that referenced this issue Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants