Update StorageDistributed.cpp

This commit is contained in:
alexey-milovidov 2020-09-03 04:39:36 +03:00 committed by GitHub
parent 776688acc2
commit edea940e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,8 @@ std::optional<QueryProcessingStage::Enum> getOptimizedQueryProcessingStage(const
size_t i = 0; size_t i = 0;
for (auto & expr : exprs) for (auto & expr : exprs)
{ {
if (++i > limit) ++i;
if (i > limit)
break; break;
auto id = expr->template as<ASTIdentifier>(); auto id = expr->template as<ASTIdentifier>();