-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Minor: refactor bloom filter tests to reduce duplication #8435
Conversation
3913a35
to
01198eb
Compare
b582b4d
to
08a274a
Compare
assert!(pruned_row_groups.is_empty()); | ||
BloomFilterTest::new_data_index_bloom_encoding_stats() | ||
.with_expect_all_pruned() | ||
// generate pruning predicate `(String = "Hello_Not_exists" OR String = "Hello_Not_exists2")` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit controversial due to "1" = "1"
part in actual test case expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree -- I am not sure what the "1" = "1"
is all about. @haohuaijin or @waynexia do you remember?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @alamb!
@waynexia or @yahoNanJing could I perhaps request your review of this PR? I can not merge it without another committer's review: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thank you @Ted-Jiang 🙏 |
Which issue does this PR close?
Follow on to #8433
Rationale for this change
The bloom filter tests have substantial duplication which makes it hard to see what they are trying to test. This PR refactors out the common pattern making the tests clearer to understand
What changes are included in this PR?
Refactor BoomFilter tests
Are these changes tested?
All tests
Are there any user-facing changes?