Try to fix build.

This commit is contained in:
Nikolai Kochetov 2021-09-10 12:03:45 +03:00
parent f569a3e3f7
commit bc7c70f93f
4 changed files with 0 additions and 54 deletions

View File

@ -15,7 +15,6 @@
#include <Parsers/ASTSelectQuery.h>
#include <Parsers/ASTSelectWithUnionQuery.h>
#include <Parsers/ASTTablesInSelectQuery.h>
#include <Processors/Sources/SinkToOutputStream.h>
#include <Processors/Sources/SourceFromInputStream.h>
#include <Processors/Sinks/ExceptionHandlingSink.h>
#include <Processors/Transforms/ExpressionTransform.h>

View File

@ -54,7 +54,6 @@
#include <Processors/Transforms/LimitsCheckingTransform.h>
#include <Processors/Transforms/MaterializingTransform.h>
#include <Processors/Formats/IOutputFormat.h>
#include <Processors/Sources/SinkToOutputStream.h>
#include <Processors/Sinks/ExceptionHandlingSink.h>
#include <random>

View File

@ -1,25 +0,0 @@
#include <Processors/Sources/SinkToOutputStream.h>
#include <DataStreams/IBlockOutputStream.h>
namespace DB
{
SinkToOutputStream::SinkToOutputStream(BlockOutputStreamPtr stream_)
: SinkToStorage(stream_->getHeader())
, stream(std::move(stream_))
{
stream->writePrefix();
}
void SinkToOutputStream::consume(Chunk chunk)
{
stream->write(getPort().getHeader().cloneWithColumns(chunk.detachColumns()));
}
void SinkToOutputStream::onFinish()
{
stream->writeSuffix();
}
}

View File

@ -1,27 +0,0 @@
#pragma once
#include <Processors/Sinks/SinkToStorage.h>
namespace DB
{
class IBlockOutputStream;
using BlockOutputStreamPtr = std::shared_ptr<IBlockOutputStream>;
/// Sink which writes data to IBlockOutputStream.
/// It's a temporary wrapper.
class SinkToOutputStream : public SinkToStorage
{
public:
explicit SinkToOutputStream(BlockOutputStreamPtr stream);
String getName() const override { return "SinkToOutputStream"; }
protected:
void consume(Chunk chunk) override;
void onFinish() override;
private:
BlockOutputStreamPtr stream;
};
}