tomron opened a new pull request, #4545:
URL: https://github.com/apache/iceberg-python/pull/4545

   Closes #4538
   
   # Rationale for this change
   
   Removing property keys that aren't set still recorded the update, so 
`update_table_metadata` bumped `last_updated_ms` and defeated the catalogs' 
skip-commit check. A repeated `remove_properties`, or one that loses a race to 
a concurrent removal, wrote a new metadata JSON, added a metadata-log entry and 
swapped the catalog pointer for a commit that changes nothing. The update is 
now recorded only when at least one key was removed, matching the 
set-properties and upgrade-format-version handlers.
   
   ## Are these changes tested?
   
   Yes. New tests in `test_catalog_behaviors.py` and `test_glue.py` check that 
the metadata location is unchanged, plus an integration test for a removal that 
races a concurrent commit. `test_init.py` is updated to expect no metadata 
change.
   
   ## Are there any user-facing changes?
   
   No API changes. Removing only unset properties no longer writes a new 
metadata version.
   


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