You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/08/02 18:19:32 UTC

[GitHub] [iceberg] RussellSpitzer commented on pull request #5327: Support resetTable procedure

RussellSpitzer commented on PR #5327:
URL: https://github.com/apache/iceberg/pull/5327#issuecomment-1203066113

   > So we could do this, today we throw an error if the table exists, but if force==true, we just call drop table. And clarify in the docs what force option does. I would probably also in the code move some the logic to read the metadataFile up and then add a Precondition that the file exists, before the if (table.exists() block) because now it will drop if force=true.
   > 
   > @RussellSpitzer @flyrain does that sound like it will work ?
   
   I prefer this approach (I think I said so before :) ) I still want the default of "don't crash a table that's already there" but I like having the option of "succeed no matter what". I think "delete" + "register" is fine even if we don't swap it atomically. My original thought was for folks doing more dangerous live swaps where we are shifting between two valid metadata.json s but even a small amount of downtime for that wouldn't be a big deal.
   


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