use polars_utils::python_function::PythonObject;
#[cfg(feature = "ir_serde")]
use serde::{Deserialize, Serialize};
use crate::plans::ExprIR;
#[derive(Clone, Debug)]
#[cfg_attr(feature = "ir_serde", derive(Serialize, Deserialize))]
pub struct ArrowPredicate {
pub predicate: ExprIR,
pub pyarrow_predicate: PythonObject,
pub has_residual: bool,
}
impl PartialEq for ArrowPredicate {
fn eq(&self, other: &Self) -> bool {
self.predicate == other.predicate && self.has_residual == other.has_residual
}
}