owenmonn opened a new pull request, #19214:
URL: https://github.com/apache/iceberg/pull/19214

   Follow-up to #18424 for views. On `AlreadyExistsException` from 
`create_table`, `HiveViewOperations` now runs the strict commit status check 
instead of failing and deleting the new metadata file, so a request the Hive 
client resent after a lost response keeps the view its first attempt created. 
The status supplier compares the UUID of the view under the name with the 
committed metadata's UUID; the metadata location is not enough because a view 
has no metadata log, so a commit on top of the new view hides it. `doCommit` 
now suppresses `MethodLength`, as the table path does, so its catch block can 
mirror the table's.
   
   `TestHiveViewCommits` covers each outcome: the resent create finds its own 
view (commit succeeds, file kept), another writer took the name with a view or 
a table (`AlreadyExistsException`, new metadata file deleted), and the check 
fails with an exception or an `Error` (file kept).
   
   ---
   **AI Disclosure**
   - Model: Claude Fable 5.2
   - Platform/Tool: Claude Code
   - Human Oversight: fully reviewed
   - Prompt Summary: Apply the create-path commit status check from #18424 to 
`HiveViewOperations`, deciding by the view UUID. The code change, the tests, 
and this description are generated; mirroring the table path with the 
`MethodLength` suppression is the author's decision.


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