mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
Update src/Storages/RocksDB/EmbeddedRocksDBBulkSink.cpp
Co-authored-by: vdimir <vdimir@clickhouse.com>
This commit is contained in:
parent
05eab7b204
commit
90d6c165e3
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user