Update FinishSortingBlockInputStream.cpp

This commit is contained in:
alexey-milovidov 2018-10-23 11:32:28 +03:00 committed by GitHub
parent 4449d7e059
commit 21e7c25134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ struct Less
Block FinishSortingBlockInputStream::readImpl()
{
if (limit && total_rows_processed == limit)
if (limit && total_rows_processed >= limit)
return {};
Block res;