diff --git a/src/Storages/MergeTree/MergeTreeRangeReader.cpp b/src/Storages/MergeTree/MergeTreeRangeReader.cpp index fcac5bc2c59..0b3765adc6a 100644 --- a/src/Storages/MergeTree/MergeTreeRangeReader.cpp +++ b/src/Storages/MergeTree/MergeTreeRangeReader.cpp @@ -484,7 +484,7 @@ void MergeTreeRangeReader::ReadResult::addFilter(const ColumnPtr & new_filter) throw Exception("addFilter function expected ColumnUInt8.", ErrorCodes::LOGICAL_ERROR); const auto & data = filter->getData(); - auto * it = data.begin(); + const auto * it = data.begin(); auto & new_data = new_mutable_holder_cast->getData(); auto * n_it = new_data.begin();