geruh opened a new pull request, #2918: URL: https://github.com/apache/iceberg-python/pull/2918
Related to #2255. # Rationale for this change This PR is a piece of the existing DFI PR in #2255. However, this rips out the existing delete->data matching behavior for deletes and indexes them for efficient lookup. The previous implementation: 1. Scanned all delete files with sequence number >= data file's sequence number 2. Created a new `_InclusiveMetricsEvaluator` instance for each data file 3. Evaluated every candidate delete file against the data file's path Now we extend this workflow with a `DeleteFileIndex` that: - INdexes path specific DVs - Indexes partition-scoped deletes by (spec_id, partition record) - Uses bisect_left for sequence number filtering This aligns with the Java implementation of the [DeleteFileIndex](https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/DeleteFileIndex.java), following the python infra. ## Are these changes tested? New tests added and existing tests continue to pass ## Are there any user-facing changes? No -- 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]
