mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Merge pull request #28361 from DimasKovas/block_ouput_streams_compats
Add compat between SinkToStorage and BlockOutputStream
This commit is contained in:
commit
c6a754289b
@ -6,7 +6,7 @@ namespace DB
|
|||||||
{
|
{
|
||||||
|
|
||||||
SinkToOutputStream::SinkToOutputStream(BlockOutputStreamPtr stream_)
|
SinkToOutputStream::SinkToOutputStream(BlockOutputStreamPtr stream_)
|
||||||
: ISink(stream_->getHeader())
|
: SinkToStorage(stream_->getHeader())
|
||||||
, stream(std::move(stream_))
|
, stream(std::move(stream_))
|
||||||
{
|
{
|
||||||
stream->writePrefix();
|
stream->writePrefix();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <Processors/ISink.h>
|
#include <Processors/Sinks/SinkToStorage.h>
|
||||||
|
|
||||||
namespace DB
|
namespace DB
|
||||||
{
|
{
|
||||||
@ -9,7 +9,7 @@ using BlockOutputStreamPtr = std::shared_ptr<IBlockOutputStream>;
|
|||||||
|
|
||||||
/// Sink which writes data to IBlockOutputStream.
|
/// Sink which writes data to IBlockOutputStream.
|
||||||
/// It's a temporary wrapper.
|
/// It's a temporary wrapper.
|
||||||
class SinkToOutputStream : public ISink
|
class SinkToOutputStream : public SinkToStorage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit SinkToOutputStream(BlockOutputStreamPtr stream);
|
explicit SinkToOutputStream(BlockOutputStreamPtr stream);
|
||||||
|
Loading…
Reference in New Issue
Block a user