diff --git a/dbms/src/DataStreams/ColumnGathererStream.cpp b/dbms/src/DataStreams/ColumnGathererStream.cpp index 9b37b661d6b..fef47a9d175 100644 --- a/dbms/src/DataStreams/ColumnGathererStream.cpp +++ b/dbms/src/DataStreams/ColumnGathererStream.cpp @@ -85,7 +85,7 @@ Block ColumnGathererStream::readImpl() if (sources.empty()) init(); - if (row_sources_buf.eof()) + if (!source_to_fully_copy && row_sources_buf.eof()) return Block(); output_block = Block{column.cloneEmpty()};