yiguolei commented on code in PR #47783:
URL: https://github.com/apache/doris/pull/47783#discussion_r1956197873
##########
be/src/vec/exec/scan/scanner_context.cpp:
##########
@@ -71,31 +71,31 @@ ScannerContext::ScannerContext(
_parallism_of_scan_operator(parallism_of_scan_operator),
_min_scan_concurrency_of_scan_scheduler(_state->min_scan_concurrency_of_scan_scheduler()),
_min_scan_concurrency(_state->min_scan_concurrency_of_scanner()) {
+ DCHECK(_state != nullptr);
DCHECK(_output_row_descriptor == nullptr ||
_output_row_descriptor->tuple_descriptors().size() == 1);
+#ifndef BE_TEST
_query_id = _state->get_query_ctx()->query_id();
+ _resource_ctx = _state->get_query_ctx()->resource_ctx;
+#endif
ctx_id = UniqueId::gen_uid().to_string();
for (auto& scanner : _all_scanners) {
_pending_scanners.push(scanner);
};
if (limit < 0) {
limit = -1;
}
- _resource_ctx = _state->get_query_ctx()->resource_ctx;
_dependency = dependency;
- if (_min_scan_concurrency_of_scan_scheduler == 0) {
Review Comment:
这是bug吗
--
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]