Try 1 to fix tests

This commit is contained in:
Anastasiya Rodigina 2019-05-26 20:41:51 +00:00
parent 32114f0260
commit 99f1aa65b3

View File

@ -148,8 +148,11 @@ Block FinishSortingBlockInputStream::readImpl()
blocks.push_back(block);
}
impl = std::make_unique<MergeSortingBlocksBlockInputStream>(blocks, description_to_sort, max_merged_block_size, limit);
res = impl->read();
if (!blocks.empty())
{
impl = std::make_unique<MergeSortingBlocksBlockInputStream>(blocks, description_to_sort, max_merged_block_size, limit);
res = impl->read();
}
}
if (res)