mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix num rows in IRowInputFormat
This commit is contained in:
parent
448d755a3b
commit
31d5c66867
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user