v.20.8Improvement

Fix Incorrect Error Message for Long Queries

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).
Fix incorrect error reporting for long queries by ensuring the error Max query size exceeded is returned instead of a syntax error for queries that exceed the allowed size.

Why it matters

This fix addresses the issue where users could receive misleading syntax errors for queries that are actually valid but exceed the maximum allowed query size. It improves error accuracy and helps users correctly identify size-related query limits.

How to use it

Users will automatically receive the correct Max query size exceeded error for queries exceeding the maximum size limit after upgrading to this version. No additional configuration is required.