timothyw553 commented on code in PR #19113:
URL: https://github.com/apache/iceberg/pull/19113#discussion_r4706687511
##########
core/src/main/java/org/apache/iceberg/SnapshotScan.java:
##########
@@ -166,7 +166,7 @@ public CloseableIterable<T> planFiles() {
metadata.putAll(EnvironmentContext.get());
ScanReport scanReport =
ImmutableScanReport.builder()
- .schemaId(schema().schemaId())
+ .schemaId(tableSchema().schemaId())
Review Comment:
nit: `ScanReport.schemaId()` doesn't say whether it's the source schema id
or the projected schema id, and the REST spec doesn't either. should we clarify
that on `ScanReport.schemaId()` or leave a quick comment here so nobody
accidentally reverts this?
```diff
+ // projected schemas may have a default id
.schemaId(tableSchema().schemaId())
```
--
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]