Vertical merge fix: don't forget to output last source_to_fully_copy [#CLICKHOUSE-3118]

This commit is contained in:
Alexey Zatelepin 2017-07-14 22:06:40 +03:00
parent 13c8fe2400
commit b10e9d1f18

View File

@ -85,7 +85,7 @@ Block ColumnGathererStream::readImpl()
if (sources.empty())
init();
if (row_sources_buf.eof())
if (!source_to_fully_copy && row_sources_buf.eof())
return Block();
output_block = Block{column.cloneEmpty()};