v.20.3New Feature

New Setting: max_parser_depth for Complex Queries

New setting introduced: max_parser_depth to control maximum stack size and allow large complex queries. This fixes #6681 and #7668. #8647 (Maxim Smirnov)
New setting max_parser_depth to control the maximum parser stack size for handling large and complex queries in ClickHouse.

Why it matters

This feature addresses limitations in parsing very large or deeply nested SQL queries by allowing users to increase the stack depth, preventing parser stack overflow errors and enabling better support for complex query structures.

How to use it

Users can enable or adjust this feature by setting the max_parser_depth configuration parameter in the ClickHouse server settings or client configuration to a higher value suitable for their query complexity.