diff --git a/src/Storages/MergeTree/MergeTreePartition.cpp b/src/Storages/MergeTree/MergeTreePartition.cpp index c1c50b8031c..83efbca9d77 100644 --- a/src/Storages/MergeTree/MergeTreePartition.cpp +++ b/src/Storages/MergeTree/MergeTreePartition.cpp @@ -214,7 +214,7 @@ static bool moduloToModuloLegacyRecursive(ASTPtr node_expr) if (function_expr->arguments) { auto children = function_expr->arguments->children; - for (auto child : children) + for (const auto & child : children) modulo_in_partition_key |= moduloToModuloLegacyRecursive(child); } }