Anurag-S1ngh opened a new pull request, #19282: URL: https://github.com/apache/iceberg/pull/19282
## Summary - Incremental scans did not emit `ScanReport`, unlike snapshot scans, so a `MetricsReporter` saw nothing for streaming planning. - Time `planFiles()` and report a `ScanReport` when the task iterable completes, using the end snapshot ID of the incremental range. - Wire the scan metrics into the incremental manifest groups so manifest and file counters are populated, and count changelog result files. ## Changes - `BaseIncrementalScan`: add a `ScanMetrics` instance, time planning, and report a `ScanReport` with the projected fields, filter, scan metrics, and metadata. - `BaseIncrementalAppendScan` and `BaseIncrementalChangelogScan`: pass the scan metrics to `ManifestGroup`. - `BaseIncrementalChangelogScan.CreateDataFileChangeTasks`: count result files with `ScanMetricsUtil.fileTask`. - `TestIncrementalDataTableScan`: assert the reported snapshot, planning duration, result data files, and scanned data manifests. ## Testing - `./gradlew :iceberg-core:test --tests "org.apache.iceberg.TestIncrementalDataTableScan" --tests "org.apache.iceberg.TestBaseIncrementalChangelogScan"` passes. - The new test fails without the report wiring. - `spotlessApply` run for the module. Part of #16589. This is the core reporting half; the Flink gauge exposure can follow now that the reports are produced. -- 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]
