Skip to content

Commit

Permalink
Added specific error for unexpected SQL Subquery.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTroyUWO committed Sep 20, 2023
1 parent 0bb707d commit 1069522
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/polars-sql/src/sql_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ impl SqlExprVisitor<'_> {
subquery,
negated,
} => self.visit_in_subquery(expr, subquery, *negated),
SqlExpr::Subquery( _ ) => polars_bail!(InvalidOperation: "Unexpected SQL Subquery"),
SqlExpr::IsDistinctFrom(e1, e2) => {
Ok(self.visit_expr(e1)?.neq_missing(self.visit_expr(e2)?))
},
Expand Down

0 comments on commit 1069522

Please sign in to comment.