Skip to content

Commit

Permalink
fix(query): fix stack overflow for optimizer (#16420)
Browse files Browse the repository at this point in the history
fix(query): fix stackoverflow for optimizer
  • Loading branch information
zhang2014 authored Sep 9, 2024
1 parent aa0c9ea commit 3bc7a91
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ impl SingleToInnerOptimizer {
Self::single_to_inner(s_expr)
}

#[recursive::recursive]
fn single_to_inner(s_expr: &SExpr) -> Result<SExpr> {
let mut s_expr = if let RelOperator::Join(join) = s_expr.plan.as_ref()
&& join.single_to_inner.is_some()
Expand Down

0 comments on commit 3bc7a91

Please sign in to comment.