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

    https://github.com/apache/spark/pull/22731#discussion_r225337806
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileScanRDD.scala
 ---
    @@ -106,15 +106,16 @@ class FileScanRDD(
             // don't need to run this `if` for every record.
             val preNumRecordsRead = inputMetrics.recordsRead
             if (nextElement.isInstanceOf[ColumnarBatch]) {
    +          incTaskInputMetricsBytesRead()
    --- End diff --
    
    Makes sense. In this case the behavior should be the same before and after 
this change, but it's therefore fine, too.


---

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

Reply via email to