Fixed error

This commit is contained in:
Alexey Milovidov 2019-12-22 14:00:30 +03:00
parent 53606c6e8f
commit 7ffa78ee95

View File

@ -188,7 +188,7 @@ void MergingSortedBlockInputStream::merge(MutableColumns & merged_columns, TSort
if (current->isFirst()
&& (queue.size() == 1
|| (queue.size() == 2 && current.totallyLessOrEquals(queue.firstChild()))
|| (queue.size() == 3 && current.totallyLessOrEquals(queue.firstChild()) && current.totallyLessOrEquals(queue.secondChild()))))
|| (queue.size() >= 3 && current.totallyLessOrEquals(queue.firstChild()) && current.totallyLessOrEquals(queue.secondChild()))))
{
// std::cerr << "current block is totally less or equals\n";