Fix build.

This commit is contained in:
Nikolai Kochetov 2020-04-10 16:03:37 +03:00
parent e9587b8f4c
commit 51e5603044
7 changed files with 28 additions and 33 deletions

View File

@ -5,6 +5,8 @@
#include <IO/WriteBuffer.h>
#include <IO/WriteHelpers.h>
#include <common/logger_useful.h>
/// Maximum number of messages about incorrect data in the log.
#define MAX_ERROR_MESSAGES 10

View File

@ -24,8 +24,6 @@ public:
bool use_average_block_sizes,
Logger * log_);
CollapsingSortedAlgorithm(CollapsingSortedAlgorithm &&) = default;
Status merge() override;
private:

View File

@ -3,14 +3,6 @@
#include <Processors/Merges/IMergingTransform.h>
#include <Processors/Merges/CollapsingSortedAlgorithm.h>
#include <Processors/Merges/RowRef.h>
#include <Processors/Merges/MergedData.h>
#include <Core/SortDescription.h>
#include <Core/SortCursor.h>
#include <DataStreams/ColumnGathererStream.h>
#include <common/logger_useful.h>
namespace DB
{
@ -38,16 +30,15 @@ public:
WriteBuffer * out_row_sources_buf_ = nullptr,
bool use_average_block_sizes = false)
: IMergingTransform2(
CollapsingSortedAlgorithm(
header,
num_inputs,
std::move(description_),
sign_column,
max_block_size,
out_row_sources_buf_,
use_average_block_sizes,
&Logger::get("CollapsingSortedTransform")),
num_inputs, header, header, true)
num_inputs, header, header, true,
header,
num_inputs,
std::move(description_),
sign_column,
max_block_size,
out_row_sources_buf_,
use_average_block_sizes,
&Logger::get("CollapsingSortedTransform"))
{
}

View File

@ -116,14 +116,15 @@ template <typename Algorithm>
class IMergingTransform2 : public IMergingTransformBase
{
public:
template <typename ... Args>
IMergingTransform2(
Algorithm && algorithm_,
size_t num_inputs,
const Block & input_header,
const Block & output_header,
bool have_all_inputs_)
bool have_all_inputs_,
Args && ... args)
: IMergingTransformBase(num_inputs, input_header, output_header, have_all_inputs_)
, algorithm(std::forward<Algorithm>(algorithm_))
, algorithm(std::forward<Args>(args) ...)
{
}

View File

@ -5,6 +5,11 @@
namespace DB
{
namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
}
MergingSortedAlgorithm::MergingSortedAlgorithm(
const Block & header,
size_t num_inputs,

View File

@ -19,8 +19,6 @@ public:
WriteBuffer * out_row_sources_buf_,
bool use_average_block_sizes);
MergingSortedAlgorithm(MergingSortedAlgorithm && other) = default;
void addInput();
void initialize(Chunks chunks) override;

View File

@ -8,11 +8,6 @@
namespace DB
{
namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
}
MergingSortedTransform::MergingSortedTransform(
const Block & header,
size_t num_inputs,
@ -24,9 +19,14 @@ MergingSortedTransform::MergingSortedTransform(
bool use_average_block_sizes,
bool have_all_inputs_)
: IMergingTransform2(
MergingSortedAlgorithm(header, num_inputs, std::move(description_), max_block_size,
limit_, out_row_sources_buf_, use_average_block_sizes),
num_inputs, header, header, have_all_inputs_)
num_inputs, header, header, have_all_inputs_,
header,
num_inputs,
std::move(description_),
max_block_size,
limit_,
out_row_sources_buf_,
use_average_block_sizes)
, quiet(quiet_)
{
}