rdblue commented on PR #16289:
URL: https://github.com/apache/iceberg/pull/16289#issuecomment-4461369585

   The contract of REPLACE TABLE is that the table's data, schema, and 
partitioning are replaced. There are no assumptions to validate, so checking 
for conflicts between concurrent changes and those changes is not required. If 
this is what you're trying to change, then I'm -1 for this commit because it is 
changing behavior that is already considered and chosen. It looks like this is 
the intent of this PR, but please reply if I'm wrong.
   
   That said, REPLACE TABLE is also intended to keep table history (it is not a 
drop/re-create). So there are, potentially, valid problems with concurrency. 
For example, if a table's schema is updated from schema-id 1 to schema-id 2 and 
then the REPLACE TABLE operation removes the new schema-id 2 -- as though the 
concurrent commit never happened -- then that's a bug that we should fix.


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