rdblue commented on PR #8278:
URL: https://github.com/apache/iceberg/pull/8278#issuecomment-1675495633

   @ConeyLiu, I said above that I think it would be valuable to handle position 
delete files that are for only one data file separately, by keeping them in a 
map. Can you help us understand how many of the delete files in your table 
would be separated out in that case? Basically, can you run something like this?
   
   ```java
     long count = 0;
     for (DeleteFile file : deleteFiles) {
       ByteBuffer lower = 
file.lowerBounds().get(MetadataColumns.FILE_PATH_COLUMN_ID);
       ByteBuffer upper = 
file.upperBounds().get(MetadataColumns.FILE_PATH_COLUMN_ID);
       if (lower.equals(upper)) {
         count += 1
       }
     }
   ```
   
   It might be easier to do this in SQL, too.


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