waterlx opened a new issue #751: Add an option to decide whether to delete data 
files in Catalog.dropTable()
URL: https://github.com/apache/incubator-iceberg/issues/751
 
 
   I would like to propose to modify Catalog.dropTable() to add an option to 
decide whether to delete data files when dropping the table, like:
   ```
     /**
      * Drop a table; optionally delete data and metadata files.
      * <p>
      * If purge is set to true the implementation should delete all data and 
metadata files.
      *
      * @param identifier a table identifier
      * @param purge if true, delete all data and metadata files in the table
      * @param deleteData ignored if purge is false; If purge is true and 
deleteData is true, delete all data and metadata files in the table; If purge 
is true and deleteData is false, delete all metadata files while keep all data 
files;
      * @return true if the table was dropped, false if the table did not exist
      */
     boolean dropTable(TableIdentifier identifier, boolean purge, boolean 
deleteData);
   ```

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to