stevenzwu commented on code in PR #6222:
URL: https://github.com/apache/iceberg/pull/6222#discussion_r1042723978


##########
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:
   could it be possible that the projection schema doesn't contain readable 
metrics struct?



-- 
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]

Reply via email to