venkata91 commented on PR #18775:
URL: https://github.com/apache/iceberg/pull/18775#issuecomment-7356648371

   Thanks @gerashegalov, good catch on the tests. In 34aa16061 I ported 
`batchReaderScanDurationIncludesPreviousReader` and 
`rowReaderScanDurationIncludesPreviousReader` from #19022 into the 4.0 
`TestSparkReadMetrics`. They fail with `TaskScanDuration` moved out of `addTo` 
in both readers and pass with it in. I also added your optional check: while 
draining, `scanDurationNanos()` must never go down, and that fails with `+=` 
changed to `=` in `BaseReader.next()`. The batch test uses a batch size of 1 so 
it has a few batches to compare. I took your `InheritedTaskMetrics` javadoc 
suggestion as is and put the SPARK-55302 note in the description too.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to