Flyangz commented on a change in pull request #2875:
URL: https://github.com/apache/iceberg/pull/2875#discussion_r678469274
##########
File path: core/src/main/java/org/apache/iceberg/FindFiles.java
##########
@@ -206,7 +212,8 @@ public Builder inPartitions(PartitionSpec spec,
List<StructLike> partitions) {
.caseSensitive(caseSensitive)
.entries();
- return CloseableIterable.transform(entries, entry ->
entry.file().copyWithoutStats());
+ return CloseableIterable.transform(entries,
+ entry -> includeColumnStats ? entry.file().copy() :
entry.file().copyWithoutStats());
Review comment:
Thanks reply. I have added the unit test, please check it out.
--
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]