mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
dbms: Server: queries with several replicas: development [#METR-14410]
This commit is contained in:
parent
b75b8bbca1
commit
1b48a66c6d
@ -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