Merge pull request #72207 from ClickHouse/backport/24.10/71498

Backport #71498 to 24.10: Fixed incorrect settings order.
This commit is contained in:
Raúl Marín 2024-11-21 19:31:52 +01:00 committed by GitHub
commit e668b927ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,8 +55,8 @@ void validateCreateQuery(const ASTCreateQuery & query, ContextPtr context)
serialized_query.data() + serialized_query.size(), serialized_query.data() + serialized_query.size(),
"after altering table ", "after altering table ",
0, 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<const ASTCreateQuery &>(); const auto & new_query = new_query_raw->as<const ASTCreateQuery &>();
/// If there are no columns, then there is nothing much we can do /// If there are no columns, then there is nothing much we can do
if (!new_query.columns_list || !new_query.columns_list->columns) if (!new_query.columns_list || !new_query.columns_list->columns)