Add compat between SinkToStorage and BlockOutputStream

This commit is contained in:
Dmitrii Kovalkov 2021-08-30 16:58:40 +03:00
parent af709ab9a0
commit 54eeeb7cf2
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ namespace DB
{
SinkToOutputStream::SinkToOutputStream(BlockOutputStreamPtr stream_)
: ISink(stream_->getHeader())
: SinkToStorage(stream_->getHeader())
, stream(std::move(stream_))
{
stream->writePrefix();

View File

@ -1,5 +1,5 @@
#pragma once
#include <Processors/ISink.h>
#include <Processors/Sinks/SinkToStorage.h>
namespace DB
{
@ -9,7 +9,7 @@ using BlockOutputStreamPtr = std::shared_ptr<IBlockOutputStream>;
/// Sink which writes data to IBlockOutputStream.
/// It's a temporary wrapper.
class SinkToOutputStream : public ISink
class SinkToOutputStream : public SinkToStorage
{
public:
explicit SinkToOutputStream(BlockOutputStreamPtr stream);