Update setting check

This commit is contained in:
Smita Kulkarni 2024-11-19 19:00:55 +01:00
parent ab463dfc3d
commit 3b566b51b8

View File

@ -383,12 +383,8 @@ void StorageMergeTree::alter(
if (new_metadata.getSettingsChanges())
{
const auto current_changes = new_metadata.getSettingsChanges()->as<const ASTSetQuery &>().changes;
if (std::find_if(
current_changes.begin(),
current_changes.end(),
[](const auto & change) {
return change.name == "enable_minmax_index_for_all_numeric_columns";
}) != current_changes.end())
auto find_setting = std::find_if(current_changes.begin(), current_changes.end(), [](const auto & change){ return change.name == "enable_minmax_index_for_all_numeric_columns"; });
if (find_setting != current_changes.end())
indices_changed = true;
}