jonsyu1 opened a new issue, #14875:
URL: https://github.com/apache/iceberg/issues/14875
### Feature Request / Improvement
The `ScanBuilder` class encapsulates the underlying `TableScan` created from
the `Table`, preventing callers from configuring how metrics are reported for
this specific scan. Here is a simple way I envision this new method being used:
```
MetricsReporter metricsReporter = new InMemoryMetricsReporter();
ScanBuilder scanBuilder = IcebergGenerics.read(table);
scanBuilder.metricsReporter(metricsReporter);
// finish building scan and read data
ScanReport scanReport = metricsReporter.scanReport();
// use scan report to wire telemetry and log details
```
See https://github.com/apache/iceberg/pull/14654 for my proposed
implementation.
### Query engine
None
### Willingness to contribute
- [x] I can contribute this improvement/feature independently
- [ ] I would be willing to contribute this improvement/feature with
guidance from the Iceberg community
- [ ] I cannot contribute this improvement/feature at this time
--
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]