Core: Add RESTScanReporter to send scan report to REST endpoint
depends on https://github.com/apache/iceberg/pull/5427
- Do we need a request object that adds another layer to the JSON? This is minor but it seems odd to have a record that just wraps another record to make the Java types work out (i.e.
ScanReportRequestis aRESTRequest).
Not sure if there's an easier way to do it, but essentially our RESTClient requires the body to be a RESTRequest and we can't make ScanReport (part of iceberg-api) just implement RESTRequest (part of iceberg-core) unfortunately.
Not sure if there's an easier way to do it, but essentially our
RESTClientrequires the body to be aRESTRequestand we can't makeScanReport(part oficeberg-api) just implementRESTRequest(part oficeberg-core) unfortunately.
Should we remove the requirement that the object sent is a RESTRequest? That is only a marker interface and I don't think it is particularly useful. If it is causing us to make the REST spec more complicated then it doesn't seem worth the trouble.
@rdblue thanks for the deep review. I've simplified/improved the things you mentioned and a few other things
Nice work, @nastra! This looks ready so I merged it.