fdb-record-layer icon indicating copy to clipboard operation
fdb-record-layer copied to clipboard

`OrPredicate.impliesCandidatePredicate` should call `PredicateWithValueAndRanges.impliesCandidatePredicate`

Open normen662 opened this issue 6 months ago • 0 comments

This logic should be refactored in a way that it calls the implies-logic in PredicateWithValuesAndRanges instead of replicating that logic here. The only reason why that is not done right now is that this logic here indirectly excludes match mappings that involve index sargables (note that the parameter alias for created mappings is always empty). The fundamental problem for index sargables here is to synthesize the comparison range the scan should use. In fact, the predicate mapping that PredicateWithValueAndRanges.impliesCandidateRange() currently produces, refuses to return a proper comparison range (which should be coalesced from the query-originating ranges but that's not done as of now which is a bug).

normen662 avatar Aug 08 '24 11:08 normen662