Repository navigation
Exclude foundSet columns without a value from BSI CompareValue - #614
Merged
Merged
Conversation
A column of foundSet that holds no value was compared as if it held zero, so GE 0, LT 15 and RANGE [0, 100] returned it. Intersect foundSet with the existence bitmap in BitSliceIndexing CompareValue and in roaring64 CompareBigValue. The int64 path of roaring64 already did. Add TestBSICompareValueIssue583 and TestBSICompareValueMatchesNaive, which check all six operations against a plain comparison of the stored values, over mixed-sign values including MinInt64 and MaxInt64, with and without a foundSet that has columns holding no value. This is the part of #598 that #606 did not already fix. Fixes #583
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This carries over the part of #598, by @Assertive-xxh, that master still needs. The commit is authored by them.
Bug (#583, problem 2)
A column of
foundSetthat holds no value was compared as if it held zero:Fix
Intersect
foundSetwith the existence bitmap inBitSliceIndexingCompareValueand inroaring64CompareBigValue(the path for BSIs with 64 or more planes). The int64 path ofroaring64already did this.Relation to #598
#598 also rewrote the per-column comparison in
BitSliceIndexingto fixRANGEwith negative values and the comparison of values with opposite signs (#583 problems 1 and 3). #606 has since fixed those on master with a different rewrite, so this PR keeps only:roaring64/bsi64_test.go(both sides only added functions at the end of the file).On master, the tests fail only on the
foundSetcases, and only because of this bug. Their sign cases, includingMinInt64andMaxInt64, already pass there, so they now also guard the #606 fix.Testing
go test ./BitSliceIndexing ./roaring64,go vetandgofmtpass.Fixes #583