Error Message "Max query size exceeded" Is Displayed During ClickHouse Query
Symptom
When a query statement is executed in ClickHouse, the error message "Max query size exceeded" is displayed.
Cause Analysis
The max_query_size parameter specifies the maximum size of a ClickHouse SQL statement that can be loaded by the ClickHouse SQL parser to the RAM for parsing. The unit is byte. The default value is 262144, that is, 256 KB.
Solution
- Limit the size of a SQL statement not to exceed 256 KB, because the query performance will be influenced if SQL statements are complex. You can optimize the SQL statements based on your services.
- Change the value of profiles.default.max_query_size of the ClickHouseServer role instance on Manager.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot