Merge pull request #46205 from ClickHouse/fix-write-buffer-destruction-order-for-vertical-merge

Fix write buffer destruction order for vertical merge.
This commit is contained in:
Nikolai Kochetov 2023-02-10 11:47:23 +01:00 committed by GitHub
commit 8c22c740a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,9 +259,9 @@ private:
struct VerticalMergeRuntimeContext : public IStageRuntimeContext //-V730
{
/// Begin dependencies from previous stage
std::unique_ptr<WriteBuffer> rows_sources_write_buf{nullptr};
std::unique_ptr<WriteBufferFromFileBase> rows_sources_uncompressed_write_buf{nullptr};
std::unique_ptr<PocoTemporaryFile> rows_sources_file;
std::unique_ptr<WriteBufferFromFileBase> rows_sources_uncompressed_write_buf{nullptr};
std::unique_ptr<WriteBuffer> rows_sources_write_buf{nullptr};
std::optional<ColumnSizeEstimator> column_sizes;
CompressionCodecPtr compression_codec;
DiskPtr tmp_disk{nullptr};