in src/main/java/com/amazonaws/services/glue/catalog/HiveGlueCatalogSyncAgent.java [303:323]
public void onDropTable(DropTableEvent tableEvent) throws MetaException {
super.onDropTable(tableEvent);
if (!suppressAllDropEvents) {
Table table = tableEvent.getTable();
String ddl = "";
if (table.getTableType().equals(EXTERNAL_TABLE_TYPE) && table.getSd().getLocation().startsWith("s3")) {
ddl = String.format("drop table if exists %s", getFqtn(table));
if (!addToAthenaQueue(ddl)) {
LOG.error("Failed to add the DropTable event to the processing queue");
} else {
LOG.debug(String.format("Requested Drop of table: %s", table.getTableName()));
}
}
} else {
LOG.debug(String.format("Ignoring DropTable event as %s set to True", SUPPRESS_ALL_DROP_EVENTS));
}
}