sdd commented on code in PR #367: URL: https://github.com/apache/iceberg-rust/pull/367#discussion_r1597956781
########## crates/iceberg/src/expr/visitors/manifest_evaluator.rs: ########## @@ -203,16 +353,39 @@ impl BoundPredicateVisitor for ManifestFilterVisitor<'_> { literals: &FnvHashSet<Datum>, _predicate: &BoundPredicate, ) -> crate::Result<bool> { - todo!() + let field: &FieldSummary = self.field_summary_for_reference(reference); + if field.lower_bound.is_none() { + return ROWS_CANNOT_MATCH; + } + + if literals.len() > IN_PREDICATE_LIMIT { + return ROWS_MIGHT_MATCH; + } + + if let Some(Literal::Primitive(lower_bound)) = &field.lower_bound { Review Comment: This is much cleaner! Thanks :-) -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org