badalprasadsingh opened a new issue, #1638: URL: https://github.com/apache/iceberg-go/issues/1638
### Apache Iceberg version main (development) ### Please describe the bug 🐞 While working on #1637, I found another branch-related bug that is independent of snapshot parent selection. Write operations issued via `NewTransactionOnBranch(branch)` resolve the set of existing files to `delete`/`overwrite`/`dedupe` by reading `MetadataBuilder.currentSnapshot()`, which always returns the main branch head (`currentSnapshotID` is only synced with `main`). The transaction's target branch is ignored. Affected: - `classifyFilesForDeletions` / `classifyFilesForFilteredDeletions` - used by `Delete` and filtered `Overwrite` - `ReplaceDataFiles`, `ReplaceDataFilesWithDataFiles`, `ReplaceFiles` - duplicate-file checks in `AddDataFiles` and `AddFiles` - `collectExistingDVs` (merge-on-read delete-vector-planning) ## Contribution Will submit a PR for this fix as well -- 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]
