szehon-ho commented on code in PR #6222: URL: https://github.com/apache/iceberg/pull/6222#discussion_r1042775511
########## core/src/main/java/org/apache/iceberg/BaseFilesTable.java: ########## @@ -177,14 +177,17 @@ public CloseableIterable<StructLike> rows() { Set<Integer> readableMetricsIds = TypeUtil.getProjectedIds(readableMetricsField.type()); Schema fileProjection = TypeUtil.selectNot(projection, readableMetricsIds); + int position = projection.columns().indexOf(readableMetricsField); Review Comment: I guess this is the else case (where the field exists in user-projection). -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org