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

    https://github.com/apache/spark/pull/23128#discussion_r237129249
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/metric/SQLMetrics.scala 
---
    @@ -82,6 +82,14 @@ object SQLMetrics {
     
       private val baseForAvgMetric: Int = 10
     
    +  val REMOTE_BLOCKS_FETCHED = "remoteBlocksFetched"
    --- End diff --
    
    rather than putting this list and the getShuffleReadMetrics function here, 
we should move it into SQLShuffleMetricsReporter. Otherwise in the future when 
one adds another metric, he/she is likely to forget to update 
SQLShuffleMetricsReporter.



---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to