Revanth14 opened a new issue, #2712:
URL: https://github.com/apache/iceberg-go/issues/2712

   ### Feature Request / Improvement
   
   ## Problem
   The Hive catalog implements CreateView, LoadView, DropView, UpdateView and 
ViewExists, but not RenameView, so `ViewCatalog.RenameView` isn't available for 
Hive (the only gap in the Hive column of feature-status). Java's 
`HiveCatalog.renameView` supports it through `renameTableOrView`.
   
   ## Fix
   Add `RenameView` following `RenameTable`: check the target namespace exists, 
take HMS locks on both names, re-read the source under the lock and confirm it 
is an Iceberg view, reject the rename if any table or view already has the 
target name, then `AlterTable`. Same errors as Java: `ErrNoSuchNamespace`, 
`ErrNoSuchView`, `ErrViewAlreadyExists` / `ErrTableAlreadyExists`.
   
   ## Context
   Java: `HiveCatalog.renameTableOrView(from, to, ContentType.VIEW)`. I'd like 
to pick this up.


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