You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(query): add recursive annotations to prevent stack overflow in CTE processing
Adds #[recursive::recursive] annotations to key CTE binding functions to prevent
stack overflow when processing complex queries with many UNION operations.
This follows the pattern established in PR #18268 and addresses the
segmentation fault issue introduced in PR #18577.
Fixes:
- bind_query() - Main query binding entry point
- m_cte_to_temp_table() - CTE temporary table creation
- compute_cte_ref_count() - CTE reference counting
- bind_cte_definition() - CTE definition binding
- TableNameReplacer visitor methods - AST traversal for name replacement
The recursive library automatically grows stack size when needed,
preventing stack overflow on deeply nested or complex query structures.
0 commit comments