Fix tests.

This commit is contained in:
Nikolai Kochetov 2020-09-16 19:11:16 +03:00
parent 8de76709fb
commit 8a26251f94
3 changed files with 23 additions and 8 deletions

View File

@ -262,6 +262,26 @@ QueryPipeline QueryPipeline::unitePipelines(
return pipeline;
}
void QueryPipeline::addCreatingSetsTransform()
{
pipeline.resize(1);
auto transform = std::make_shared<CreatingSetsTransform>(
pipeline.getHeader(),
getOutputStream().header,
std::move(subquery_for_set),
network_transfer_limits,
context));
InputPort * totals_port = nullptr;
if (pipe.getTotalsPort())
totals_port = transform->addTotalsPort();
pipe.addTransform(std::move(transform), totals_port, nullptr);
}
void QueryPipeline::addDelayingPipeline(QueryPipeline pipeline)
{
checkInitializedAndNotCompleted();

View File

@ -89,6 +89,8 @@ public:
/// Pipeline must have same header.
void addDelayingPipeline(QueryPipeline pipeline);
void addCreatingSetsTransform();
PipelineExecutorPtr execute();
size_t getNumStreams() const { return pipe.numOutputPorts(); }

View File

@ -39,14 +39,7 @@ CreatingSetStep::CreatingSetStep(
void CreatingSetStep::transformPipeline(QueryPipeline & pipeline)
{
pipeline.resize(1);
pipeline.addTransform(
std::make_shared<CreatingSetsTransform>(
pipeline.getHeader(),
getOutputStream().header,
std::move(subquery_for_set),
network_transfer_limits,
context));
pipeline.addCreatingSetsTransform();
}
void CreatingSetStep::describeActions(FormatSettings & settings) const