RatulDawar opened a new pull request, #20627:
URL: https://github.com/apache/datafusion/pull/20627

   ## Summary
   - include synchronous `start_next_file()` / `FileOpener::open()` setup time 
in `time_elapsed_scanning_total`
   - keep existing `time_opening` and scanning timers lifecycle intact
   - avoid timer overlap by scoping the temporary timer before calling 
`time_scanning_total.start()`
   
   ## Details
   In `FileStreamState::Open`, `start_next_file()` is invoked before 
`time_scanning_total.start()`. If `open()` performs synchronous work before 
returning the future, that time was previously unaccounted for in 
`time_elapsed_scanning_total`.
   
   This change wraps the `start_next_file()` call in a scoped timer on the same 
`time_scanning_total` metric so the missing segment is recorded.
   
   Fixes #20571
   
   ## Validation
   - `cargo test -p datafusion-datasource with_limit_at_middle_of_batch -- 
--nocapture`
   


-- 
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