mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
dbms: Server: queries with several replicas: development [#METR-14410]
This commit is contained in:
parent
0a12f51d74
commit
6d5ec43b66
@ -281,6 +281,16 @@ BlockInputStreams MergeTreeDataSelectExecutor::read(
|
||||
});
|
||||
|
||||
final_parts_with_ranges = hashed_replica_parts[settings.parallel_replica_offset].second;
|
||||
|
||||
/// Пересчитываем количество засечек и диапазонов.
|
||||
sum_marks = 0;
|
||||
sum_ranges = 0;
|
||||
for (const auto & part_with_ranges : *final_parts_with_ranges)
|
||||
{
|
||||
sum_ranges += part_with_ranges.ranges.size();
|
||||
for (const auto & range : part_with_ranges.ranges)
|
||||
sum_marks += range.end - range.begin;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user