Fix build.

This commit is contained in:
Nikolai Kochetov 2020-10-06 11:55:03 +03:00
parent d968f276b5
commit efd1f10a6d
2 changed files with 6 additions and 6 deletions

View File

@ -25,10 +25,10 @@ static ITransformingStep::Traits getTraits()
AddingMissedStep::AddingMissedStep(
const DataStream & input_stream_,
Block result_header_,
const ColumnDefaults & column_defaults_,
ColumnsDescription columns_,
const Context & context_)
: ITransformingStep(input_stream_, result_header_, getTraits())
, column_defaults(column_defaults_)
, columns(std::move(columns_))
, context(context_)
{
updateDistinctColumns(output_stream->header, output_stream->distinct_columns);
@ -38,7 +38,7 @@ void AddingMissedStep::transformPipeline(QueryPipeline & pipeline)
{
pipeline.addSimpleTransform([&](const Block & header)
{
return std::make_shared<AddingMissedTransform>(header, output_stream->header, column_defaults, context);
return std::make_shared<AddingMissedTransform>(header, output_stream->header, columns, context);
});
}

View File

@ -1,6 +1,6 @@
#pragma once
#include <Processors/QueryPlan/ITransformingStep.h>
#include <Storages/ColumnDefault.h>
#include <Storages/ColumnsDescription.h>
namespace DB
{
@ -11,7 +11,7 @@ class AddingMissedStep : public ITransformingStep
public:
AddingMissedStep(const DataStream & input_stream_,
Block result_header_,
const ColumnDefaults & column_defaults_,
ColumnsDescription columns_,
const Context & context_);
String getName() const override { return "AddingMissed"; }
@ -19,7 +19,7 @@ public:
void transformPipeline(QueryPipeline & pipeline) override;
private:
ColumnDefaults column_defaults;
ColumnsDescription columns;
const Context & context;
};