Skip to content

Commit

Permalink
fix: Validate subnodes in validate IR
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Nov 17, 2024
1 parent 2a0d79b commit 1249d14
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 48 deletions.
4 changes: 3 additions & 1 deletion crates/polars-plan/src/dsl/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ impl Expr {
expr_arena: &mut Arena<AExpr>,
) -> PolarsResult<Field> {
let root = to_aexpr(self.clone(), expr_arena)?;
expr_arena.get(root).to_field(schema, ctxt, expr_arena)
expr_arena
.get(root)
.to_field_and_validate(schema, ctxt, expr_arena)
}
}

Expand Down
Loading

0 comments on commit 1249d14

Please sign in to comment.