v.20.7Improvement

Fix Error Reporting for Long Queries in ClickHouse

Fix wrong error for long queries. It was possible to get syntax error other than Max query size exceeded for correct query. #13928 (Nikolai Kochetov).
Fixes incorrect syntax error reporting for long queries by properly returning the Max query size exceeded error.

Why it matters

Previously, users might see misleading syntax errors for queries that exceeded the maximum allowed size. This fix ensures that the correct error message is shown, helping users better understand and address query size limitations.

How to use it

This fix is applied automatically in the new version; users do not need to enable anything explicitly.