kaka11chen commented on code in PR #44635:
URL: https://github.com/apache/doris/pull/44635#discussion_r1918912277
##########
be/src/pipeline/exec/file_scan_operator.cpp:
##########
@@ -37,9 +38,11 @@ Status
FileScanLocalState::_init_scanners(std::list<vectorized::VScannerSPtr>* s
}
auto& p = _parent->cast<FileScanOperatorX>();
- uint32_t shard_num = std::min(
- config::doris_scanner_thread_pool_thread_num /
state()->query_parallel_instance_num(),
- _max_scanners);
+ // There's only one scan range for each backend in batch split mode. Each
backend only starts up one ScanNode instance.
+ uint32_t shard_num =
+ std::min(config::doris_scanner_thread_pool_thread_num /
+ (_batch_split_mode ? 1 :
state()->query_parallel_instance_num()),
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]