Skip to content

tests: make sqllogictest tests resilient to result ordering #32483

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aljoscha
Copy link
Contributor

A side effect of the work on https://github.com/MaterializeInc/database-issues/issues/9180 is that it can change the ordering of results when no ORDER BY is specified. This is fine according to the SQL standard and all databases say you shouldn't rely on any ordering.

Some of our tests do, however, rely on a specific ordering, which is what this PR changes, as preparation for https://github.com/MaterializeInc/database-issues/issues/9180.

Tips for reviewers

This is a bit tedious to review, but there's no changes to actual database code, so if all the tests still pass I'd say all's good. You still probably want to check my changes to sqllogictest around sorting, and spot-check individual test files.

@aljoscha aljoscha requested review from ParkMyCar and def- May 13, 2025 14:27
Copy link
Contributor

@def- def- left a comment

Choose a reason for hiding this comment

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

Nightly triggered: https://buildkite.com/materialize/nightly/builds/12004

Tell me if you need any help with finishing this up

@aljoscha aljoscha force-pushed the tests-sqllogictests-resilient-to-ordering branch 3 times, most recently from 99492c3 to 1a86413 Compare May 14, 2025 13:11
@aljoscha aljoscha marked this pull request as ready for review May 14, 2025 16:05
@aljoscha aljoscha requested review from ggevay and a team as code owners May 14, 2025 16:05
At least those that we managed to find by futzing with result ordering
as a result of stashed peek responses.
@aljoscha aljoscha force-pushed the tests-sqllogictests-resilient-to-ordering branch from 1a86413 to ee5d332 Compare May 14, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants