Skip to content

Commit

Permalink
some feature gates
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Jan 15, 2025
1 parent 6ce3a88 commit 28c5755
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/polars-io/src/predicates.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use arrow::array::Array;
use arrow::bitmap::MutableBitmap;
use polars_core::prelude::*;
#[cfg(feature = "parquet")]
use polars_parquet::read::expr::{ParquetColumnExpr, ParquetScalar, ParquetScalarRange};
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -74,6 +75,7 @@ impl ColumnPredicateExpr {
}
}

#[cfg(feature = "parquet")]
impl ParquetColumnExpr for ColumnPredicateExpr {
fn evaluate_mut(&self, values: &dyn Array, bm: &mut MutableBitmap) {
// We should never evaluate nulls with this.
Expand Down Expand Up @@ -126,6 +128,7 @@ impl ParquetColumnExpr for ColumnPredicateExpr {
}
}

#[cfg(feature = "parquet")]
fn cast_to_parquet_scalar(scalar: Scalar) -> Option<ParquetScalar> {
use {AnyValue as A, ParquetScalar as P};

Expand Down

0 comments on commit 28c5755

Please sign in to comment.