@Override
  public final Table filterTable(Table table) throws MetaException, NoSuchObjectException {
    if (table != null) {
      List<Table> tables = filterTables(Collections.singletonList(table));
      if (tables.isEmpty()) {
        throw new NoSuchObjectException(String.format("Database %s does not exist", table.getTableName()));
      }
    }
    return table;
  }
HiveMetaStoreAuthorizer :  Do authorization checks on MetaStore Events in MetaStorePreEventListener
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java