diff --git a/dbms/src/Storages/DeltaMerge/DMVersionFilterBlockInputStream.cpp b/dbms/src/Storages/DeltaMerge/DMVersionFilterBlockInputStream.cpp index 6f491615e15..9e6bee47015 100644 --- a/dbms/src/Storages/DeltaMerge/DMVersionFilterBlockInputStream.cpp +++ b/dbms/src/Storages/DeltaMerge/DMVersionFilterBlockInputStream.cpp @@ -380,7 +380,7 @@ Block DMVersionFilterBlockInputStream::read(FilterPtr & res_filter, bool r else { Block res; - for (auto & c : header) + for (const auto & c : header) { auto & column = cur_raw_block.getByName(c.name); column.column = column.column->filter(filter, passed_count);