Try fix tests.

This commit is contained in:
Nikolai Kochetov 2020-03-27 13:09:42 +03:00
parent d1d54ab1df
commit 96895e063f
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ void IMergingTransform::setHaveAllInputs()
void IMergingTransform::requestDataForInput(size_t input_number)
{
if (!need_data)
if (need_data)
throw Exception("Data was requested for several inputs in IMergingTransform:"
" " + std::to_string(next_input_to_read) + " and " + std::to_string(input_number),
ErrorCodes::LOGICAL_ERROR);

View File

@ -184,7 +184,7 @@ void MergingSortedTransform::merge(TSortingHeap & queue)
void MergingSortedTransform::insertFromChunk(size_t source_num)
{
if (source_num >= cursors.size())
throw Exception("Logical error in MergingSortedTrandform", ErrorCodes::LOGICAL_ERROR);
throw Exception("Logical error in MergingSortedTransform", ErrorCodes::LOGICAL_ERROR);
//std::cerr << "copied columns\n";