This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2ba385385a1 [Bug](load) fix s3 load not display the progress info
(#35719)
2ba385385a1 is described below
commit 2ba385385a1f1e31bba820e0d0025ec36fee030f
Author: zhangstar333 <[email protected]>
AuthorDate: Sat Jun 1 11:22:35 2024 +0800
[Bug](load) fix s3 load not display the progress info (#35719)
## Proposed changes
should display the load progress info, so the user could know it loading
step.
```
JobId: 49088
Label: rpt_10002184_syqzzywqkb10
State: FINISHED
Progress: 100.00% (10/10)
```
<!--Describe your changes.-->
---
be/src/runtime/fragment_mgr.cpp | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/be/src/runtime/fragment_mgr.cpp b/be/src/runtime/fragment_mgr.cpp
index 69fff2951ef..f2fac9ec7df 100644
--- a/be/src/runtime/fragment_mgr.cpp
+++ b/be/src/runtime/fragment_mgr.cpp
@@ -231,7 +231,6 @@ void FragmentMgr::coordinator_callback(const
ReportStatusRequest& req) {
params.__set_status(exec_status.to_thrift());
params.__set_done(req.done);
params.__set_query_type(req.runtime_state->query_type());
- params.__set_finished_scan_ranges(req.runtime_state->num_finished_range());
DCHECK(req.runtime_state != nullptr);
@@ -317,23 +316,29 @@ void FragmentMgr::coordinator_callback(const
ReportStatusRequest& req) {
int64_t num_rows_load_success = 0;
int64_t num_rows_load_filtered = 0;
int64_t num_rows_load_unselected = 0;
+ int64_t num_finished_ranges = 0;
if (req.runtime_state->num_rows_load_total() > 0 ||
- req.runtime_state->num_rows_load_filtered() > 0) {
+ req.runtime_state->num_rows_load_filtered() > 0 ||
+ req.runtime_state->num_finished_range() > 0) {
params.__isset.load_counters = true;
num_rows_load_success = req.runtime_state->num_rows_load_success();
num_rows_load_filtered =
req.runtime_state->num_rows_load_filtered();
num_rows_load_unselected =
req.runtime_state->num_rows_load_unselected();
+ num_finished_ranges = req.runtime_state->num_finished_range();
} else if (!req.runtime_states.empty()) {
for (auto* rs : req.runtime_states) {
- if (rs->num_rows_load_total() > 0 ||
rs->num_rows_load_filtered() > 0) {
+ if (rs->num_rows_load_total() > 0 ||
rs->num_rows_load_filtered() > 0 ||
+ req.runtime_state->num_finished_range() > 0) {
params.__isset.load_counters = true;
num_rows_load_success += rs->num_rows_load_success();
num_rows_load_filtered += rs->num_rows_load_filtered();
num_rows_load_unselected += rs->num_rows_load_unselected();
+ num_finished_ranges += rs->num_finished_range();
}
}
}
+ params.__set_finished_scan_ranges(num_finished_ranges);
params.load_counters.emplace(s_dpp_normal_all,
std::to_string(num_rows_load_success));
params.load_counters.emplace(s_dpp_abnormal_all,
std::to_string(num_rows_load_filtered));
params.load_counters.emplace(s_unselected_rows,
std::to_string(num_rows_load_unselected));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]