diff --git a/cpp-ch/local-engine/Storages/SourceFromJavaIter.cpp b/cpp-ch/local-engine/Storages/SourceFromJavaIter.cpp index 2191112cfc12..f123b7c74f41 100644 --- a/cpp-ch/local-engine/Storages/SourceFromJavaIter.cpp +++ b/cpp-ch/local-engine/Storages/SourceFromJavaIter.cpp @@ -142,7 +142,7 @@ DB::Chunk SourceFromJavaIter::generate() } else { - DB::Chunk result = BlockUtil::buildRowCountChunk(input_block->rows()); + result = BlockUtil::buildRowCountChunk(input_block->rows()); auto info = std::make_shared(); result.getChunkInfos().add(std::move(info)); }