Fix RollupTransform.

This commit is contained in:
Nikolai Kochetov 2019-08-22 11:29:29 +03:00
parent c3aaf583a0
commit 8228871821

View File

@ -50,7 +50,9 @@ Chunk RollupTransform::generate()
auto columns = gen_chunk.getColumns(); auto columns = gen_chunk.getColumns();
columns[key] = columns[key]->cloneEmpty()->cloneResized(num_rows); columns[key] = columns[key]->cloneEmpty()->cloneResized(num_rows);
rollup_chunk = merge({Chunk(std::move(columns), num_rows)}, false); Chunks chunks;
chunks.emplace_back(std::move(columns), num_rows);
rollup_chunk = merge(std::move(chunks), false);
} }
finalizeChunk(gen_chunk); finalizeChunk(gen_chunk);