Skip to content

Commit 8ffc5d7

Browse files
committed
refactor: simplify cast expression in PyExpr and remove unused module reference
1 parent 3d3af30 commit 8ffc5d7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/expr.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,7 @@ impl PyExpr {
315315
pub fn cast(&self, to: PyDataType) -> PyExpr {
316316
// self.expr.cast_to() requires DFSchema to validate that the cast
317317
// is supported, omit that for now
318-
let expr = Expr::Cast(Cast::new(
319-
Box::new(self.expr.clone()),
320-
to.data_type,
321-
));
318+
let expr = Expr::Cast(Cast::new(Box::new(self.expr.clone()), to.data_type));
322319
expr.into()
323320
}
324321

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pub mod expr;
4848
#[allow(clippy::borrow_deref_ref)]
4949
mod functions;
5050
pub mod physical_plan;
51-
mod pyarrow_filter_expression;
5251
mod record_batch;
5352
pub mod sql;
5453
pub mod store;

0 commit comments

Comments
 (0)