smaheshwar-pltr opened a new pull request, #4523: URL: https://github.com/apache/iceberg-python/pull/4523
# Rationale for this change A transaction can set `write.metadata.path` and then write data. The new metadata file and the data files go to the new locations, but the manifests and manifest list still go under the old metadata directory, because they're placed using the table's metadata from when the transaction started. For example, after setting `write.data.path` and `write.metadata.path` to `/data` and `/metadata` and appending in one transaction: ``` metadata file: /metadata/00001-....metadata.json data file: /data/00000-0-....parquet manifest list: /default/t/metadata/snap-...-0-....avro manifest: /default/t/metadata/...-m0.avro ``` This PR places them using the transaction's metadata, as data files already are. Iceberg Java does the same through the transaction's [table operations](https://github.com/apache/iceberg/blob/f0e7de3c2f207a49ac3a241ac7346726c08c8f1b/core/src/main/java/org/apache/iceberg/BaseTransaction.java#L468-L514). ## Are these changes tested? Yes. A catalog test sets `write.metadata.path` and appends in the same transaction, then checks where the manifest list and manifests were written. It fails without the fix. ## Are there any user-facing changes? Manifests and manifest lists written in a transaction go to a `write.metadata.path` set earlier in that transaction. **AI Disclosure:** This PR was authored by Claude Code (Opus 5.5) but directed and overseen by me. -- 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]
