jackye1995 commented on code in PR #4423:
URL: https://github.com/apache/iceberg/pull/4423#discussion_r897496241
##########
aws/src/main/java/org/apache/iceberg/aws/glue/GlueCatalog.java:
##########
@@ -514,4 +524,17 @@ public void setConf(Configuration conf) {
protected Map<String, String> properties() {
return catalogProperties == null ? ImmutableMap.of() : catalogProperties;
}
+
+ private boolean isTablePurged(TableIdentifier identifier, FileIO
tableFileIO) {
+ Table table = glue.getTable(GetTableRequest.builder()
+ .catalogId(awsProperties.glueCatalogId())
+ .databaseName(identifier.namespace().toString())
+ .name(identifier.name())
+ .build()).table();
+ String metadataLocation =
table.parameters().get(BaseMetastoreTableOperations.METADATA_LOCATION_PROP);
+ if (metadataLocation == null || metadataLocation.isEmpty()) {
Review Comment:
L535-538 can be combined in a single return
--
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]