Update RollupBlockInputStream.cpp

This commit is contained in:
alexey-milovidov 2018-09-06 03:58:24 +03:00 committed by GitHub
parent 7f71bc4189
commit 4c549f79cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,11 @@ Block RollupBlockInputStream::getHeader() const
Block RollupBlockInputStream::readImpl()
{
/** After reading a block from input stream,
* we will subsequently roll it up on next iterations of 'readImpl'
* by zeroing out every column one-by-one and re-merging a block.
*/
if (current_key >= 0)
{
auto & current = rollup_block.getByPosition(keys[current_key]);