jiwen624 commented on code in PR #18883:
URL: https://github.com/apache/iceberg/pull/18883#discussion_r4541355735
##########
core/src/main/java/org/apache/iceberg/rest/RESTTableScan.java:
##########
@@ -171,7 +171,7 @@ public CloseableIterable<FileScanTask> planFiles() {
if (columnsToKeepStats() != null) {
statsFields =
columnsToKeepStats().stream()
- .map(columnId -> schema().findColumnName(columnId))
+ .map(tableSchema()::findColumnName)
Review Comment:
Nice catch. There is a remaining case: time travel to a snapshot from before
a column was added still sends a null (e.g.
`includeColumnStats(List.of("extra")).useSnapshot(oldSnapshotId)` returns the
same error). - should it be handled too?
--
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]