manuzhang commented on issue #5706:
URL: https://github.com/apache/iceberg/issues/5706#issuecomment-1244768353

   @rdblue It's because `rowFilter == true` in the following function.
   
   ```
     static boolean dropStats(Expression rowFilter, Collection<String> columns) 
{
       // Make sure we only drop all stats if we had projected all stats
       // We do not drop stats even if we had partially added some stats 
columns, except for record_count column.
       // Since we don't want to keep stats map which could be huge in size 
just because we select record_count, which
       // is a primitive type.
       if (rowFilter != Expressions.alwaysTrue() && columns != null &&
           !columns.containsAll(ManifestReader.ALL_COLUMNS)) {
         Set<String> intersection = Sets.intersection(Sets.newHashSet(columns), 
STATS_COLUMNS);
         return intersection.isEmpty() || 
intersection.equals(Sets.newHashSet("record_count"));
       }
       return false;
     }
   ```


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