RussellSpitzer commented on issue #2131:
URL: https://github.com/apache/iceberg/issues/2131#issuecomment-764851225


   There is an method "expire" which just returns the dataset of files that 
would be removed without removing files if you like, but if you just want to 
remove snapshots without cleaning files it should be essentially the same as 
the table API. The big difference in Table and Action implementations is in 
identifying which files need to be cleaned.
   
     /**
      * Expires snapshots and commits the changes to the table, returning a 
Dataset of files to delete.
      * <p>
      * This does not delete data files. To delete data files, run {@link 
#execute()}.
      * <p>
      * This may be called before or after {@link #execute()} is called to 
return the expired file list.
      *
      * @return a Dataset of files that are no longer referenced by the table
      */
     public Dataset<Row> expire() {


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