RussellSpitzer commented on issue #7052:
URL: https://github.com/apache/iceberg/issues/7052#issuecomment-1479745229

   This is unfortunately very very difficult. Renaming a table would require 
moving all the associated files which is potentitally a very very large move, 
there are also currently no rules about an iceberg table having to have its 
files at the table location. We actually have many properties for doing just 
the opposite. 
   
   That said I think we have several options of dealing with this,
   
   See chat here
   https://apache-iceberg.slack.com/archives/C025PH0G1D4/p1679336480004559
   
   And Issue here
   https://github.com/apache/iceberg/issues/6890
   and here
   https://github.com/apache/iceberg/issues/4159
   
   
   I think what we need to think about here is adding some additional 
safeguards on Remove Orphan files. For example we should check whether any 
known table locations in the catalogs could potentially conflict with our 
current table location (either matching or being a subdirectory)
   
   Drop Table is basically safe since it only deletes known files, although 
some engines (Like Trino) also drop the root directory which is a separate 
issue.
   


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