-
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
Revert "[improvement](scanner_schedule) reduce memory consumption of … #26772
Conversation
…scanner (apache#24199)" This reverts commit 71dcb58.
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
@@ -74,13 +74,13 @@ class ScannerContext { | |||
ScannerContext(RuntimeState* state_, VScanNode* parent, | |||
const TupleDescriptor* output_tuple_desc, | |||
const std::list<VScannerSPtr>& scanners_, int64_t limit_, | |||
int64_t max_bytes_in_blocks_queue_, const int num_parallel_instances = 1, | |||
int64_t max_bytes_in_blocks_queue_, const int num_parallel_instances = 0, |
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 'num_parallel_instances' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]
int64_t max_bytes_in_blocks_queue_, const int num_parallel_instances = 0, | |
int64_t max_bytes_in_blocks_queue_, int num_parallel_instances = 0, |
} | ||
|
||
int get_available_thread_slot_num() { | ||
int cal_thread_slot_num_by_free_block_num() { |
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 'cal_thread_slot_num_by_free_block_num' can be made static [readability-convert-member-functions-to-static]
int cal_thread_slot_num_by_free_block_num() { | |
static int cal_thread_slot_num_by_free_block_num() { |
TeamCity be ut coverage result: |
TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
…scanner (#24199)"
This reverts commit 71dcb58.
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...