mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
Fix tests.
This commit is contained in:
parent
8de76709fb
commit
8a26251f94
@ -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();
|
||||
|
@ -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(); }
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user