-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[pipelineX](local shuffle) Fix local shuffle for colocate/bucket join #28032
Conversation
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@@ -249,40 +250,55 @@ Status PipelineXFragmentContext::prepare(const doris::TPipelineFragmentParams& r | |||
return Status::OK(); | |||
} | |||
|
|||
Status PipelineXFragmentContext::_plan_local_shuffle() { | |||
Status PipelineXFragmentContext::_plan_local_shuffle( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: method '_plan_local_shuffle' can be made static [readability-convert-member-functions-to-static]
Status PipelineXFragmentContext::_plan_local_shuffle( | |
static Status PipelineXFragmentContext::_plan_local_shuffle( |
return Status::OK(); | ||
} | ||
|
||
Status PipelineXFragmentContext::_plan_local_shuffle( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: method '_plan_local_shuffle' can be made static [readability-convert-member-functions-to-static]
Status PipelineXFragmentContext::_plan_local_shuffle( | |
static Status PipelineXFragmentContext::_plan_local_shuffle( |
const std::vector<TExpr>& texprs, | ||
ExchangeType exchange_type, | ||
bool* do_local_exchange) { | ||
Status PipelineXFragmentContext::_add_local_exchange( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function '_add_local_exchange' exceeds recommended size/complexity thresholds [readability-function-size]
Status PipelineXFragmentContext::_add_local_exchange(
^
Additional context
be/src/pipeline/pipeline_x/pipeline_x_fragment_context.cpp:652: 99 lines including whitespace and comments (threshold 80)
Status PipelineXFragmentContext::_add_local_exchange(
^
Status _add_local_exchange(int pip_idx, int idx, int node_id, ObjectPool* pool, | ||
PipelinePtr cur_pipe, const std::vector<TExpr>& texprs, | ||
ExchangeType exchange_type, bool* do_local_exchange, int num_buckets, | ||
const std::map<int, int>& bucket_seq_to_instance_idx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: parameter 10 is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]
const std::map<int, int>& bucket_seq_to_instance_idx); | |
std::map<int, int>& bucket_seq_to_instance_idx); |
@@ -153,7 +154,10 @@ | |||
const TPipelineFragmentParams& params, const RowDescriptor& row_desc, | |||
RuntimeState* state, DescriptorTbl& desc_tbl, | |||
PipelineId cur_pipeline_id); | |||
Status _plan_local_shuffle(); | |||
Status _plan_local_shuffle(int num_buckets, | |||
const std::map<int, int>& bucket_seq_to_instance_idx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: parameter 2 is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]
const std::map<int, int>& bucket_seq_to_instance_idx); | |
std::map<int, int>& bucket_seq_to_instance_idx); |
Status _plan_local_shuffle(int num_buckets, | ||
const std::map<int, int>& bucket_seq_to_instance_idx); | ||
Status _plan_local_shuffle(int num_buckets, int pip_idx, PipelinePtr pip, | ||
const std::map<int, int>& bucket_seq_to_instance_idx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: parameter 4 is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]
const std::map<int, int>& bucket_seq_to_instance_idx); | |
std::map<int, int>& bucket_seq_to_instance_idx); |
TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...