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

Fixes #1907: Sorting and comparing nested fields get confused #1918

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

MMcM
Copy link
Contributor

@MMcM MMcM commented Nov 17, 2022

First, add some tests that cover the advanceCurrentSort calls from planNestedFieldOrComponentChild.

Each of these tests has two queries that should have identical plans.
The first one matches with both planners (by means of that code in the old case).
The second only currently passes with the Cascades planner (due to limitations of that same code).

Then, redo how sort keys are tracked by and-with-then planner.

  • Equality comparisons take care of the corresponding key no matter where it occurs.
  • Some unconditional sort advances got out-of-sync.

normen662
normen662 previously approved these changes Nov 17, 2022
@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr-proto2 on Linux CentOS 7

@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr-proto3 on Linux CentOS 7

…stedFieldOrComponentChild`.

Each of these tests has two queries that should have identical plans.
The first one matches with both planners (by means of that code in the old case).
The second only currently passes with the Cascades planner (due to limitations of that same code).
* Equality comparisons take care of the corresponding key no matter where it occurs.
* Some unconditional sort advances got out-of-sync.
Fixes FoundationDB#1907: Sorting and comparing nested fields get confused
@sonarcloud
Copy link

sonarcloud bot commented Nov 17, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr-proto2 on Linux CentOS 7

@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr-proto3 on Linux CentOS 7

@MMcM MMcM merged commit 78c2837 into FoundationDB:main Nov 18, 2022
@MMcM MMcM deleted the and-with-then-sorting branch November 18, 2022 00:17
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.

None yet

3 participants