mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 10:40:49 +00:00
Fix build.
This commit is contained in:
parent
db9ad40db5
commit
b4a93c092d
@ -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>();
|
||||
|
||||
|
@ -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>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user