Fix num rows in IRowInputFormat

This commit is contained in:
Nikolai Kochetov 2019-12-03 16:43:40 +03:00
parent 448d755a3b
commit 31d5c66867

View File

@ -43,7 +43,6 @@ Chunk IRowInputFormat::generate()
size_t num_columns = header.columns();
MutableColumns columns = header.cloneEmptyColumns();
size_t prev_rows = total_rows;
///auto chunk_missing_values = std::make_unique<ChunkMissingValues>();
block_missing_values.clear();
@ -149,7 +148,8 @@ Chunk IRowInputFormat::generate()
return {};
}
Chunk chunk(std::move(columns), total_rows - prev_rows);
auto num_rows = columns.front()->size();
Chunk chunk(std::move(columns), num_rows);
//chunk.setChunkInfo(std::move(chunk_missing_values));
return chunk;
}