Skip to content

Commit

Permalink
[BUG]: panic in sql subquery (#3291)
Browse files Browse the repository at this point in the history
  • Loading branch information
universalmind303 authored Nov 13, 2024
1 parent bfe6560 commit 0720ffc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/daft-sql/src/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1296,11 +1296,7 @@ impl SQLPlanner {
)
}
SQLExpr::Exists { .. } => unsupported_sql_err!("EXISTS"),
SQLExpr::Subquery(subquery) => {
let mut this = Self::new(self.catalog.clone());
let subquery = this.plan_query(subquery)?.build();
Ok(Expr::Subquery(Subquery { plan: subquery }).arced())
}
SQLExpr::Subquery(_) => unsupported_sql_err!("SUBQUERY"),
SQLExpr::GroupingSets(_) => unsupported_sql_err!("GROUPING SETS"),
SQLExpr::Cube(_) => unsupported_sql_err!("CUBE"),
SQLExpr::Rollup(_) => unsupported_sql_err!("ROLLUP"),
Expand Down

0 comments on commit 0720ffc

Please sign in to comment.