This commit is contained in:
Amos Bird 2022-07-07 23:00:40 +08:00
parent d3709c6c26
commit 982e1a73d3
No known key found for this signature in database
GPG Key ID: 80D430DCBECFEDB4
3 changed files with 10 additions and 2 deletions

View File

@ -38,7 +38,14 @@ QueryPipelineBuilderPtr JoinStep::updatePipeline(QueryPipelineBuilders pipelines
std::move(pipelines[0]), std::move(pipelines[1]), join, output_stream->header, max_block_size, &processors);
return QueryPipelineBuilder::joinPipelinesRightLeft(
std::move(pipelines[0]), std::move(pipelines[1]), join, max_block_size, max_streams, keep_left_read_in_order, &processors);
std::move(pipelines[0]),
std::move(pipelines[1]),
join,
output_stream->header,
max_block_size,
max_streams,
keep_left_read_in_order,
&processors);
}
void JoinStep::describePipeline(FormatSettings & settings) const

View File

@ -361,6 +361,7 @@ std::unique_ptr<QueryPipelineBuilder> QueryPipelineBuilder::joinPipelinesRightLe
std::unique_ptr<QueryPipelineBuilder> left,
std::unique_ptr<QueryPipelineBuilder> right,
JoinPtr join,
const Block & output_header,
size_t max_block_size,
size_t max_streams,
bool keep_left_read_in_order,
@ -448,7 +449,6 @@ std::unique_ptr<QueryPipelineBuilder> QueryPipelineBuilder::joinPipelinesRightLe
auto lit = left->pipe.output_ports.begin();
auto rit = right->pipe.output_ports.begin();
auto output_header = JoiningTransform::transformHeader(left->getHeader(), join);
for (size_t i = 0; i < num_streams; ++i)
{
auto joining = std::make_shared<JoiningTransform>(

View File

@ -114,6 +114,7 @@ public:
std::unique_ptr<QueryPipelineBuilder> left,
std::unique_ptr<QueryPipelineBuilder> right,
JoinPtr join,
const Block & output_header,
size_t max_block_size,
size_t max_streams,
bool keep_left_read_in_order,