[SPARK-31271][UI] fix web ui for driver side SQL metrics#28037
[SPARK-31271][UI] fix web ui for driver side SQL metrics#28037cloud-fan wants to merge 1 commit intoapache:masterfrom
Conversation
|
Test build #120424 has finished for PR 28037 at commit
|
sql/core/src/main/scala/org/apache/spark/sql/execution/metric/SQLMetrics.scala
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/execution/metric/SQLMetrics.scala
Show resolved
Hide resolved
|
@cloud-fan |
There was a problem hiding this comment.
Could you fix the following in SQLMetricsTestUtils.scala? That causes UT failures.
val totalNumBytesMetric = executedNode.metrics.find(
_.name == "written output total (min, med, max (stageId (attemptId): taskId))").getacbaa45 to
f91c51c
Compare
|
Test build #120477 has finished for PR 28037 at commit
|
|
Test build #120476 has finished for PR 28037 at commit
|
|
Test build #120488 has finished for PR 28037 at commit
|
| metric | ||
| s"total $METRICS_NAME_SUFFIX\n$sum ($min, $med, $max $taskInfo)" | ||
| } | ||
| s"\n$sum ($min, $med, $max)" |
There was a problem hiding this comment.
Just a question: In this case, it seems that we didn't have $taskInfo previously.
There was a problem hiding this comment.
dongjoon-hyun
left a comment
There was a problem hiding this comment.
+1, LGTM. I also verified this locally via web UI. Thank you, all.
Merged to master/3.0.
### What changes were proposed in this pull request? In #23551, we changed the metrics type of driver-side SQL metrics to size/time etc. which comes with max/min/median info. This doesn't make sense for driver side SQL metrics as they have only one value. It makes the web UI hard to read:  This PR updates the SQL metrics UI to only display max/min/median if there are more than one metrics values:  ### Why are the changes needed? Makes the UI easier to read ### Does this PR introduce any user-facing change? no ### How was this patch tested? manual test Closes #28037 from cloud-fan/ui. Authored-by: Wenchen Fan <wenchen@databricks.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit c4e98c0) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
### What changes were proposed in this pull request? In apache#23551, we changed the metrics type of driver-side SQL metrics to size/time etc. which comes with max/min/median info. This doesn't make sense for driver side SQL metrics as they have only one value. It makes the web UI hard to read:  This PR updates the SQL metrics UI to only display max/min/median if there are more than one metrics values:  ### Why are the changes needed? Makes the UI easier to read ### Does this PR introduce any user-facing change? no ### How was this patch tested? manual test Closes apache#28037 from cloud-fan/ui. Authored-by: Wenchen Fan <wenchen@databricks.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
In #23551, we changed the metrics type of driver-side SQL metrics to size/time etc. which comes with max/min/median info.
This doesn't make sense for driver side SQL metrics as they have only one value. It makes the web UI hard to read:

This PR updates the SQL metrics UI to only display max/min/median if there are more than one metrics values:

Why are the changes needed?
Makes the UI easier to read
Does this PR introduce any user-facing change?
no
How was this patch tested?
manual test