zinking opened a new issue, #9383:
URL: https://github.com/apache/iceberg/issues/9383

   ### Apache Iceberg version
   
   1.4.2 (latest release)
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   ```
     public List<ManifestFile> apply(TableMetadata base, Snapshot snapshot) {
       // filter any existing manifests
       List<ManifestFile> filtered =
           filterManager.filterManifests(
               SnapshotUtil.schemaFor(base, targetBranch()),
               snapshot != null ? snapshot.dataManifests(ops.io()) : null);
       long minDataSequenceNumber =
           filtered.stream()
               .map(ManifestFile::minSequenceNumber)
               .filter(
                   seq ->
                       seq
                           != ManifestWriter
                               .UNASSIGNED_SEQ) // filter out unassigned in 
rewritten manifests
               .reduce(base.lastSequenceNumber(), Math::min);
       deleteFilterManager.dropDeleteFilesOlderThan(minDataSequenceNumber);
       ```
       
      the minDataSequenceNumber is calculdated table wise, but in theory it 
should be partition wise ? 
      
      I am seeing v2 tables (partitioned tables) having delete files retained 
in partitions but those delete files wont apply to any data files within that 
partition. 


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to