Fixed error [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-09-09 08:47:27 +03:00
parent b2ec7ce6b2
commit 3f07a1af51

View File

@ -25,7 +25,11 @@ Block SquashingBlockInputStream::readImpl()
SquashingTransform::Result result = transform.add(block.mutateColumns());
if (result.ready)
{
if (result.columns.empty())
return {};
return header.cloneWithColumns(std::move(result.columns));
}
}
}