prateek11rai commented on PR #4629:
URL: https://github.com/apache/iceberg-python/pull/4629#issuecomment-7456019339
> [!NOTE]
> 🤖 `claude-opus-5-5` on behalf of Prateek
Thanks @Fokko for the review! I've pushed 8d18b0a, which addresses all four
points:
- **Load returning both keys:** we kept both on purpose. On `main`,
`Description` is the only key that reaches the Glue description, so existing
scripts read and edit it, and returning only `comment` would break them. For
the stale-alias override you found, an update that sends both keys now uses the
one that changed, and raises a `ValueError` if both changed to different
values. `test_update_namespace_description_after_load` covers your
read-modify-write case. Happy to switch to `comment` only if you still prefer
the Java behavior.
- **Summary:** removals are now adjusted before the summary is built.
Removing one key lists both as removed, and `removals={"comment"}` with
`updates={"Description": ...}` reports only the update. Removing and updating
the same key still raises the existing overlap error.
- **Tests:** added a table commit that removes the description (for both
keys), and update cases that set both keys.
- **Nit:** the three tests now use `@pytest.mark.parametrize`.
--
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]