Update src/Storages/RocksDB/EmbeddedRocksDBBulkSink.cpp

Co-authored-by: vdimir <vdimir@clickhouse.com>
This commit is contained in:
Duc Canh Le 2024-05-01 10:05:49 +08:00 committed by GitHub
parent 05eab7b204
commit 90d6c165e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,11 +113,7 @@ std::vector<Chunk> EmbeddedRocksDBBulkSink::squash(Chunk chunk)
/// End of input stream
if (chunk.getNumRows() == 0)
{
if (chunks.empty())
return {};
std::vector<Chunk> to_return;
std::swap(to_return, chunks);
return to_return;
return std::move(chunks);
}
/// Just read block is already enough.