mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
Use storage_snapshot for projection analysis
This commit is contained in:
parent
99a55a2304
commit
a071bde59e
@ -5176,7 +5176,9 @@ std::optional<ProjectionCandidate> MergeTreeData::getQueryProcessingStageWithAgg
|
|||||||
if (const StorageReplicatedMergeTree * replicated = dynamic_cast<const StorageReplicatedMergeTree *>(this))
|
if (const StorageReplicatedMergeTree * replicated = dynamic_cast<const StorageReplicatedMergeTree *>(this))
|
||||||
max_added_blocks = std::make_shared<PartitionIdToMaxBlock>(replicated->getMaxAddedBlocks());
|
max_added_blocks = std::make_shared<PartitionIdToMaxBlock>(replicated->getMaxAddedBlocks());
|
||||||
}
|
}
|
||||||
auto parts = getDataPartsVector();
|
|
||||||
|
const auto & snapshot_data = assert_cast<const MergeTreeData::SnapshotData &>(*storage_snapshot->data);
|
||||||
|
const auto & parts = snapshot_data.parts;
|
||||||
|
|
||||||
// If minmax_count_projection is a valid candidate, check its completeness.
|
// If minmax_count_projection is a valid candidate, check its completeness.
|
||||||
if (minmax_count_projection_candidate)
|
if (minmax_count_projection_candidate)
|
||||||
|
Loading…
Reference in New Issue
Block a user