nastra commented on code in PR #6073:
URL: https://github.com/apache/iceberg/pull/6073#discussion_r1008118659
##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -223,8 +223,20 @@ public boolean dropTable(SessionContext context,
TableIdentifier identifier) {
}
@Override
- public boolean purgeTable(SessionContext context, TableIdentifier ident) {
- throw new UnsupportedOperationException("Purge is not supported");
+ public boolean purgeTable(SessionContext context, TableIdentifier
identifier) {
+ checkIdentifierIsValid(identifier);
+
+ try {
+ client.delete(
+ paths.table(identifier),
+ ImmutableMap.of("purgeRequested", "true"),
Review Comment:
that's the name of the query param according to
https://github.com/apache/iceberg/blob/master/open-api/rest-catalog-open-api.yaml#L653
--
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]