mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Remove unused code
This commit is contained in:
parent
b225f9c34b
commit
c7239c64ea
@ -145,9 +145,6 @@ bool IMergeTreeSelectAlgorithm::getNewTask()
|
|||||||
|
|
||||||
ChunkAndProgress IMergeTreeSelectAlgorithm::read()
|
ChunkAndProgress IMergeTreeSelectAlgorithm::read()
|
||||||
{
|
{
|
||||||
size_t num_read_rows = 0;
|
|
||||||
size_t num_read_bytes = 0;
|
|
||||||
|
|
||||||
while (!is_cancelled)
|
while (!is_cancelled)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -178,10 +175,6 @@ ChunkAndProgress IMergeTreeSelectAlgorithm::read()
|
|||||||
ordered_columns.push_back(res.block.getByName(name).column);
|
ordered_columns.push_back(res.block.getByName(name).column);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Account a progress from previous empty chunks.
|
|
||||||
res.num_read_rows += num_read_rows;
|
|
||||||
res.num_read_bytes += num_read_bytes;
|
|
||||||
|
|
||||||
return ChunkAndProgress{
|
return ChunkAndProgress{
|
||||||
.chunk = Chunk(ordered_columns, res.row_count),
|
.chunk = Chunk(ordered_columns, res.row_count),
|
||||||
.num_read_rows = res.num_read_rows,
|
.num_read_rows = res.num_read_rows,
|
||||||
@ -194,7 +187,7 @@ ChunkAndProgress IMergeTreeSelectAlgorithm::read()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {Chunk(), num_read_rows, num_read_bytes, true};
|
return {Chunk(), 0, 0, true};
|
||||||
}
|
}
|
||||||
|
|
||||||
void IMergeTreeSelectAlgorithm::initializeMergeTreeReadersForCurrentTask(
|
void IMergeTreeSelectAlgorithm::initializeMergeTreeReadersForCurrentTask(
|
||||||
|
Loading…
Reference in New Issue
Block a user