You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "RussellSpitzer (via GitHub)" <gi...@apache.org> on 2023/03/22 15:09:18 UTC
[GitHub] [iceberg] RussellSpitzer commented on issue #7052: 🐞Default table location may cause table to be lost
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org