Github user gengliangwang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23002#discussion_r232713853
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/ui/SQLAppStatusListener.scala
 ---
    @@ -159,7 +159,7 @@ class SQLAppStatusListener(
       }
     
       private def aggregateMetrics(exec: LiveExecutionData): Map[Long, String] 
= {
    -    val metricIds = exec.metrics.map(_.accumulatorId).sorted
    +    val metricIds = exec.metrics.map(_.accumulatorId).toSet
         val metricTypes = exec.metrics.map { m => (m.accumulatorId, 
m.metricType) }.toMap
         val metrics = exec.stages.toSeq
           .flatMap { stageId => Option(stageMetrics.get(stageId)) }
    --- End diff --
    
    I am also fine with the current code here.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to