bryanck opened a new pull request #3812:
URL: https://github.com/apache/iceberg/pull/3812


   This PR fixes an issue when scanning the snapshots (and history) metadata 
tables. When the current snapshot for a table is not set, then no snapshots 
will be returned during the scan. A table can get in this state if it has 
snapshots, then a `REPLACE TABLE` operation is performed. In this case, the 
snapshots are still present but will not be returned because the current 
snapshot is not set. If some data is committed to the table, and the current 
snapshot is set to something, then the previous snapshots that were not 
returned will show up again.
   
   Here is an example on how to reproduce with Spark SQL:
   `create table local.default.foobar (id int) using iceberg;
   insert into local.default.foobar values (1);
   replace table local.default.foobar (id int, data string) using iceberg;
   select * from local.default.foobar.snapshots; -- no snapshots returned
   `
   


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