Fix build.

This commit is contained in:
Nikolai Kochetov 2020-03-19 17:16:49 +03:00
parent db9ad40db5
commit b4a93c092d
2 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@ void TreeExecutorBlockInputStream::initRowsBeforeLimit()
}
}
if (!rows_before_limit_at_least && (!limit_transforms.empty() && !sources.empty()))
if (!rows_before_limit_at_least && (!limit_transforms.empty() || !sources.empty()))
{
rows_before_limit_at_least = std::make_shared<RowsBeforeLimitCounter>();

View File

@ -622,7 +622,7 @@ void QueryPipeline::initRowsBeforeLimit()
}
}
if (!rows_before_limit_at_least && (!limits.empty() && !sources.empty()))
if (!rows_before_limit_at_least && (!limits.empty() || !sources.empty()))
{
rows_before_limit_at_least = std::make_shared<RowsBeforeLimitCounter>();