From 0c4ef23bed2985a38707f1412f0103156f19b744 Mon Sep 17 00:00:00 2001 From: robot-clickhouse Date: Thu, 21 Nov 2024 12:09:55 +0000 Subject: [PATCH] Backport #71498 to 24.10: Fixed incorrect settings order. --- src/Databases/DatabasesCommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Databases/DatabasesCommon.cpp b/src/Databases/DatabasesCommon.cpp index d26ec9d6eec..80b334630cd 100644 --- a/src/Databases/DatabasesCommon.cpp +++ b/src/Databases/DatabasesCommon.cpp @@ -55,8 +55,8 @@ void validateCreateQuery(const ASTCreateQuery & query, ContextPtr context) serialized_query.data() + serialized_query.size(), "after altering table ", 0, - context->getSettingsRef()[Setting::max_parser_backtracks], - context->getSettingsRef()[Setting::max_parser_depth]); + context->getSettingsRef()[Setting::max_parser_depth], + context->getSettingsRef()[Setting::max_parser_backtracks]); const auto & new_query = new_query_raw->as(); /// If there are no columns, then there is nothing much we can do if (!new_query.columns_list || !new_query.columns_list->columns)