lirui-apache opened a new issue, #13294:
URL: https://github.com/apache/iceberg/issues/13294

   ### Feature Request / Improvement
   
   ExpireSnapshots is NOP when there is no snapshot. But I think it's more 
intuitive to clean expired metadata in that case. For example, I would expect 
this test to pass
   ```java
     @TestTemplate
     public void test() throws Exception {
       table.updateSchema().addColumn("extra_col1", 
Types.StringType.get()).commit();
       table.updateSchema().addColumn("extra_col2", 
Types.StringType.get()).commit();
   
       removeSnapshots(table)
           .expireOlderThan(System.currentTimeMillis())
           .cleanExpiredMetadata(true)
           .commit();
   
       assertThat(table.schemas()).hasSize(1);
     }
   ```
   
   ### Query engine
   
   None
   
   ### Willingness to contribute
   
   - [ ] I can contribute this improvement/feature independently
   - [ ] I would be willing to contribute this improvement/feature with 
guidance from the Iceberg community
   - [ ] I cannot contribute this improvement/feature at this time


-- 
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-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to