rdblue commented on a change in pull request #1338:
URL: https://github.com/apache/iceberg/pull/1338#discussion_r471807256



##########
File path: core/src/main/java/org/apache/iceberg/ManifestGroup.java
##########
@@ -163,6 +166,9 @@ ManifestGroup planWith(ExecutorService newExecutorService) {
     DeleteFileIndex deleteFiles = deleteIndexBuilder.build();
 
     boolean dropStats = ManifestReader.dropStats(dataFilter, columns);
+    if (!deleteFiles.isEmpty()) {
+      select(Streams.concat(columns.stream(), 
ManifestReader.STATS_COLUMNS.stream()).collect(Collectors.toList()));

Review comment:
       This was needed to ensure the stats columns are projected for data files 
when there are delete files, even if the stats columns were not requested by 
the caller.




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

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