Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed May 6, 2024
1 parent 559321a commit 5453c57
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/iceberg/src/arrow/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ impl ArrowReader {
let mut column_indices = collector
.field_ids
.iter()
.map(|field_id| field_id_map.get(field_id).cloned())
.flatten()
.filter_map(|field_id| field_id_map.get(field_id).cloned())
.collect::<Vec<_>>();

column_indices.sort();
Expand Down Expand Up @@ -580,7 +579,7 @@ impl<'a> BoundPredicateVisitor for PredicateConverter<'a> {
reference: &BoundReference,
_predicate: &BoundPredicate,
) -> Result<Box<PredicateResult>> {
if let Some(_) = self.bound_reference(reference) {
if self.bound_reference(reference).is_some() {
self.build_always_true()
} else {
// A missing column, treating it as null.
Expand All @@ -593,7 +592,7 @@ impl<'a> BoundPredicateVisitor for PredicateConverter<'a> {
reference: &BoundReference,
_predicate: &BoundPredicate,
) -> Result<Box<PredicateResult>> {
if let Some(_) = self.bound_reference(reference) {
if self.bound_reference(reference).is_some() {
self.build_always_false()
} else {
// A missing column, treating it as null.
Expand Down

0 comments on commit 5453c57

Please sign in to comment.