Fokko commented on code in PR #2890:
URL: https://github.com/apache/iceberg-python/pull/2890#discussion_r2682106628


##########
tests/catalog/test_rest.py:
##########
@@ -2155,3 +2156,86 @@ def test_view_endpoints_enabled_with_config(self, 
requests_mock: Mocker) -> None
         # View endpoints should be supported when enabled
         catalog._check_endpoint(Capability.V1_LIST_VIEWS)
         catalog._check_endpoint(Capability.V1_DELETE_VIEW)
+
+
+def test_table_uuid_check_on_commit(rest_mock: Mocker, 
example_table_metadata_v2: dict[str, Any]) -> None:

Review Comment:
   I'm not a big fan of mocking this out, since I think this should already 
work as @kevinjqliu pointed out. When performing the update, `AssertTableUUID` 
should ensure that no other process has dropped and recreated the table. The 
requirement will be asserted by the REST catalog on the server, or with 
`{Hive,Sql,etc}Catalog` it should be part of the code when we maintain a lock 
on the table.



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