diff --git a/dbms/src/DataStreams/FilterBlockInputStream.cpp b/dbms/src/DataStreams/FilterBlockInputStream.cpp index d9f0c9142a7..2f6115863cf 100644 --- a/dbms/src/DataStreams/FilterBlockInputStream.cpp +++ b/dbms/src/DataStreams/FilterBlockInputStream.cpp @@ -44,7 +44,7 @@ FilterBlockInputStream::FilterBlockInputStream(const BlockInputStreamPtr & input && !constant_filter_description.always_true) { /// Replace the filter column to a constant with value 1. - auto header_filter_elem = header.getByPosition(filter_column); + auto & header_filter_elem = header.getByPosition(filter_column); header_filter_elem.column = header_filter_elem.type->createColumnConst(header.rows(), UInt64(1)); } }