Repository navigation
Commit ccafa6b
committed
Fix
The `elapsed_compute` baseline metric for Parquet scans previously
reported unrealistically low values (e.g. 14ns for a full table scan)
because no timer was wrapping the per-batch compute work.
This follows the same pattern used in PR apache#18901 for CSV: instantiate
`BaselineMetrics` in `ParquetOpener::open()` and wrap the stream's
per-batch processing (projection, schema replacement, metrics copy)
with an `elapsed_compute` timer.
Closes part of apache#18195.elapsed_compute metric for Parquet DataSourceExec1 parent 02ce571 commit ccafa6b
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
634 | | - | |
| 635 | + | |
| 636 | + | |
635 | 637 | | |
636 | 638 | | |
637 | 639 | | |
| |||
659 | 661 | | |
660 | 662 | | |
661 | 663 | | |
662 | | - | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
663 | 667 | | |
664 | 668 | | |
665 | 669 | | |
| |||
0 commit comments