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

    https://github.com/apache/spark/pull/22594#discussion_r223353261
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
 ---
    @@ -570,4 +572,33 @@ class SQLMetricsSuite extends SparkFunSuite with 
SQLMetricsTestUtils with Shared
           }
         }
       }
    +
    +  test("InputMetrics---bytesRead") {
    --- End diff --
    
    This isn't really testing the code you changed. It's replicating something 
similar and testing that. I don't think this test helps. Ideally you would 
write a test for any path that uses `FileScanRDD` and check its metrics. Are 
there tests around here that you could 'piggyback' onto? maybe an existing test 
of the metrics involving `ColumnarBatch ` than can be changed to trigger this 
case.
    
    It may be hard, I don't know. Worth looking to see if there's an easy way 
to test this.


---

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

Reply via email to