aokolnychyi commented on issue #1597:
URL: https://github.com/apache/iceberg/issues/1597#issuecomment-707497461


   I'd make both `older_than` and `retain_last` optional and require at least 
one to be present. If only `retain_last` is present, I'd default `timestamp` to 
the current timestamp. 
   
   The following would keep only 100 last snapshots, for example.
   
   ```
   CALL catalog.schema.expire_snapshots(
     namespace => 'namespace_name',
     table => 'table_name',
     retain_last => 100
   )
   ```


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

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