v.24.2Improvement
Check for Stack Overflow in Parsers with High max_parser_depth Configuration
Check for stack overflow in parsers even if the user misconfigured the max_parser_depth setting to a very high value. This closes #59622. #59697 (Alexey Milovidov). #60434Why it matters
To prevent stack overflow errors in ClickHouse parsers even when users configure themax_parser_depth setting to an excessively high value. This ensures more robust parsing and protects server stability by enforcing safety checks independently of user misconfigurations.How to use it
This feature is applied internally and does not require user intervention. Users can continue setting themax_parser_depth parameter as usual, while ClickHouse now adds additional safety checks to prevent stack overflows during parsing.