v.22.4Improvement

Stack Overflow Fix in Distributed Queries for Deeply Nested Data Types

It was possible to get stack overflow in distributed queries if one of the settings async_socket_for_remote and use_hedged_requests is enabled while parsing very deeply nested data type (at least in debug build). Closes #35509. #35524 (Kruglov Pavel).
Fixed a stack overflow issue in distributed queries occurring when parsing very deeply nested data types with either async_socket_for_remote or use_hedged_requests enabled.

Why it matters

This fix prevents stack overflow errors that could happen during distributed query execution in debug builds when dealing with complex nested data structures. It improves the stability and reliability of distributed queries when using asynchronous socket or hedged request settings.

How to use it

Ensure you are using the updated ClickHouse version where this fix is applied. You can safely enable async_socket_for_remote or use_hedged_requests settings without risk of stack overflow when processing deeply nested data types in distributed queries.