mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Fix get rows before limit at least.
This commit is contained in:
parent
e7799aafcf
commit
bcf3534e35
@ -503,6 +503,16 @@ void QueryPipeline::calcRowsBeforeLimit()
|
||||
has_limit = true;
|
||||
rows_before_limit_at_least += limit->getRowsBeforeLimitAtLeast();
|
||||
}
|
||||
|
||||
if (auto * source = typeid_cast<SourceFromInputStream *>(processor.get()))
|
||||
{
|
||||
auto & info = source->getStream().getProfileInfo();
|
||||
if (info.hasAppliedLimit())
|
||||
{
|
||||
has_limit = true;
|
||||
rows_before_limit_at_least += info.getRowsBeforeLimit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
UInt64 rows_before_limit = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user