Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Jan 15, 2025
1 parent 96400e4 commit 8b04b88
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions crates/polars-io/src/predicates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ impl ColumnPredicateExpr {
}
pub fn to_eq_scalar(&self) -> Option<&Scalar> {
match &self.specialized {
Some(
SpecializedColumnPredicateExpr::Eq(sc)
| SpecializedColumnPredicateExpr::EqMissing(sc),
) => Some(sc),
Some(SpecializedColumnPredicateExpr::Eq(sc)) if !sc.is_null() => Some(sc),
Some(SpecializedColumnPredicateExpr::EqMissing(sc)) => Some(sc),
_ => None,
}
}
Expand All @@ -95,7 +93,7 @@ impl ParquetColumnExpr for ColumnPredicateExpr {
let column = series.into_column();
let df = unsafe { DataFrame::new_no_checks(values.len(), vec![column]) };

// @TODO: Probably thes unwraps should be removed.
// @TODO: Probably these unwraps should be removed.
let true_mask = self.expr.evaluate_io(&df).unwrap();
let true_mask = true_mask.bool().unwrap();

Expand All @@ -111,7 +109,7 @@ impl ParquetColumnExpr for ColumnPredicateExpr {
let column = Column::full_null(self.column_name.clone(), 1, &self.dtype);
let df = unsafe { DataFrame::new_no_checks(1, vec![column]) };

// @TODO: Probably thes unwraps should be removed.
// @TODO: Probably these unwraps should be removed.
let true_mask = self.expr.evaluate_io(&df).unwrap();
let true_mask = true_mask.bool().unwrap();

Expand Down

0 comments on commit 8b04b88

Please sign in to comment.