Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change one additional_input_at_end to many streams in ParallelInputsProcessor #5274

Merged
merged 22 commits into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions dbms/src/DataStreams/ParallelAggregatingBlockInputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace DB
{
ParallelAggregatingBlockInputStream::ParallelAggregatingBlockInputStream(
const BlockInputStreams & inputs,
const BlockInputStreamPtr & additional_input_at_end,
const BlockInputStreams & additional_inputs_at_end,
const Aggregator::Params & params_,
const FileProviderPtr & file_provider_,
bool final_,
Expand All @@ -41,11 +41,10 @@ ParallelAggregatingBlockInputStream::ParallelAggregatingBlockInputStream(
, keys_size(params.keys_size)
, aggregates_size(params.aggregates_size)
, handler(*this)
, processor(inputs, additional_input_at_end, max_threads, handler, log)
, processor(inputs, additional_inputs_at_end, max_threads, handler, log)
{
children = inputs;
if (additional_input_at_end)
children.push_back(additional_input_at_end);
children.insert(children.end(), additional_inputs_at_end.begin(), additional_inputs_at_end.end());
}


Expand Down
2 changes: 1 addition & 1 deletion dbms/src/DataStreams/ParallelAggregatingBlockInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ParallelAggregatingBlockInputStream : public IProfilingBlockInputStream
*/
ParallelAggregatingBlockInputStream(
const BlockInputStreams & inputs,
const BlockInputStreamPtr & additional_input_at_end,
const BlockInputStreams & additional_inputs_at_end,
const Aggregator::Params & params_,
const FileProviderPtr & file_provider_,
bool final_,
Expand Down
Loading