alamb commented on code in PR #25811:
URL: https://github.com/apache/datafusion/pull/25811#discussion_r4671042659
##########
datafusion/datasource-parquet/src/bloom_filter.rs:
##########
@@ -707,4 +719,51 @@ mod tests {
Ok(pruned_row_groups)
}
+
+ #[test]
+ #[allow(clippy::allow_attributes, clippy::mutable_key_type)] //
ScalarValue has interior mutability but is intentionally used as hash key
Review Comment:
I don't think we need a unit test of `is_known_not_present` as it is already
covered elsewhere (like if you broke `is_known_not_present` other tests would
fail)
In general adding lots of test s for extracting code into a new function is
probably unecessary
##########
datafusion/datasource-parquet/src/opener/mod.rs:
##########
@@ -5229,6 +5188,284 @@ mod test {
assert_eq!(matched, 0);
}
+ /// Verify that a Bloom filter available for only one predicate column is
still
Review Comment:
Also according to the 🤖
the fully-matched case is already covered by
`fully_matched_row_groups_skip_bloom_filter_reads`
just above, and the read-error and missing-filter branches are unchanged
from main.
##########
datafusion/datasource-parquet/src/opener/mod.rs:
##########
@@ -5229,6 +5188,284 @@ mod test {
assert_eq!(matched, 0);
}
+ /// Verify that a Bloom filter available for only one predicate column is
still
Review Comment:
Why do we need all these tests? I think they are now redundant with what is
in [bloom_filter_io.rs,
](https://github.com/apache/datafusion/blob/53fd7034ad2cb8337e1bbdf689e1649eb44116ed/datafusion/core/tests/parquet/io/bloom_filter_io.rs)
right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]