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

opt: disallow non-standard NULL ordering with subqueries in test builds #131254

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

mgartner
Copy link
Collaborator

The optimizer does not correctly build ORDER BY expressions with
non-standard NULL orderings when one or more of the ordering columns
is a projection containing a subquery. This causes test-only assertions
to fail in randomized tests. It is not yet known if there are any issues
with the results of these queries in production builds where the test
assertions are disabled.

For now, we simply return an "unimplemented" error to silence the
failures.

Informs #129956

Release note: None

@mgartner mgartner requested a review from a team as a code owner September 23, 2024 21:30
@mgartner mgartner requested review from DrewKimball and removed request for a team September 23, 2024 21:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@DrewKimball DrewKimball left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @mgartner)

The optimizer does not correctly build `ORDER BY` expressions with
non-standard `NULL` orderings when one or more of the ordering columns
is a projection containing a subquery. This causes test-only assertions
to fail in randomized tests. It is not yet known if there are any issues
with the results of these queries in production builds where the test
assertions are disabled.

For now, we simply return an "unimplemented" error to silence the
failures.

Informs cockroachdb#129956

Release note: None
@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig craig bot merged commit a699eb2 into cockroachdb:master Sep 25, 2024
23 checks passed
@mgartner mgartner deleted the 129956-silence-failures branch September 25, 2024 17:45
@mgartner
Copy link
Collaborator Author

mgartner commented Oct 2, 2024

blathers backport 24.2

@yuzefovich
Copy link
Member

blathers backport 24.1

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.

4 participants