You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RecordQueryPlanner.AndWithThenPlanner.planNestedFieldOrComponentChild does advanceCurrentSort unconditionally in the inequality case. But that then defeats the currentSortMatches on the enclosing expression that's actually being requested. It then stops matching and fails to find more index fields that can match later sort keys.
The text was updated successfully, but these errors were encountered:
Perhaps as a result of some refactoring, it appears that there is zero test coverage of either of the advanceCurrentSort calls in planNestedFieldOrComponentChild. I would have expected that they help some queries and hurt other ones like those described here. But we don't actually have examples of that.
MMcM
added a commit
to MMcM/fdb-record-layer
that referenced
this issue
Nov 17, 2022
* Equality comparisons take care of the corresponding key no matter where it occurs.
* Some unconditional sort advances got out-of-sync.
FixesFoundationDB#1907: Sorting and comparing nested fields get confused
MMcM
added a commit
to MMcM/fdb-record-layer
that referenced
this issue
Nov 17, 2022
* Equality comparisons take care of the corresponding key no matter where it occurs.
* Some unconditional sort advances got out-of-sync.
FixesFoundationDB#1907: Sorting and comparing nested fields get confused
RecordQueryPlanner.AndWithThenPlanner.planNestedFieldOrComponentChild
doesadvanceCurrentSort
unconditionally in the inequality case. But that then defeats thecurrentSortMatches
on the enclosing expression that's actually being requested. It then stops matching and fails to find more index fields that can match later sort keys.The text was updated successfully, but these errors were encountered: