Skip to content

Commit ca842e5

Browse files
authored
chore: fix stackoverflow in CleanupUnusedCTEOptimizer (#18476)
1 parent 2d30a7e commit ca842e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/query/sql/src/planner/optimizer/optimizers/operator/cte/cleanup_unused_cte.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ impl CleanupUnusedCTEOptimizer {
5656
}
5757

5858
/// Remove unused CTEs from the expression tree and update ref_count
59+
#[recursive::recursive]
5960
fn remove_unused_ctes(
6061
s_expr: &SExpr,
6162
referenced_ctes: &HashMap<String, usize>,

0 commit comments

Comments
 (0)