diff --git a/src/Storages/MergeTree/MergeTreeSequentialSource.cpp b/src/Storages/MergeTree/MergeTreeSequentialSource.cpp index 7e7bb4871a1..00bb160216f 100644 --- a/src/Storages/MergeTree/MergeTreeSequentialSource.cpp +++ b/src/Storages/MergeTree/MergeTreeSequentialSource.cpp @@ -401,7 +401,7 @@ public: if (!key_condition.alwaysFalse()) mark_ranges = MergeTreeDataSelectExecutor::markRangesFromPKRange( data_part, - 0, data_part->index_granularity.getMarksCount(), + 0, data_part->index_granularity->getMarksCount(), metadata_snapshot, key_condition, /*part_offset_condition=*/{},