danielhumanmod commented on code in PR #1652:
URL: 
https://github.com/apache/datafusion-ballista/pull/1652#discussion_r3178843327


##########
ballista/scheduler/src/api/handlers.rs:
##########
@@ -522,23 +522,13 @@ pub async fn get_query_stages<
                             .enumerate()
                             .map(|(partition_id, task_info)| {
                                 task_info.as_ref().map(|info| {
-                                    let partition_metrics = running_stage
+                                    let (input_rows, output_rows) = 
running_stage
                                         .stage_metrics
                                         .as_deref()
-                                        .and_then(|m| m.get(partition_id));

Review Comment:
   This change is optional, but I think it better aligns with the current 
metrics format. `stage_metrics` is indexed by operator, so the index here does 
not necessarily correspond to the partition id.



-- 
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]

Reply via email to