manuzhang commented on code in PR #5836:
URL: https://github.com/apache/iceberg/pull/5836#discussion_r985074602
##########
core/src/main/java/org/apache/iceberg/ManifestReader.java:
##########
@@ -268,8 +270,7 @@ CloseableIterable<ManifestEntry<F>> liveEntries() {
/** @return an Iterator of DataFile. Makes defensive copies of files before
returning */
@Override
public CloseableIterator<F> iterator() {
- return CloseableIterable.transform(liveEntries(), e ->
e.file().copy(!dropStats(columns)))
- .iterator();
+ return CloseableIterable.transform(liveEntries(), e ->
e.file().copy(!dropStats)).iterator();
Review Comment:
@rdblue @nastra I missed that `dropStats` is invoked at internal lambda
function. It's fixed and I also try adding a UT for project. However, with
project `columns == null` is always true so `dropStats` is always false. I
doubt whether it's a meaningful test.
--
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]