protected void testFilterForTables(boolean filterAtServer) throws Exception {

    // Skip this call when testing filter hook at HMS server because HMS server calls authorization
    // API for getTable(), and does not call filter hook
    if (!filterAtServer) {
      try {
        client.getTable(DBNAME1, TAB1);
        fail("getTable() should fail with blocking mode");
      } catch (NoSuchObjectException e) {
        // Excepted
      }
    }

    assertEquals(0, client.getTables(DBNAME1, "*").size());
    assertEquals(0, client.getTables(DBNAME1, "*", TableType.MANAGED_TABLE).size());
    assertEquals(0, client.getAllTables(DBNAME1).size());
    assertEquals(0, client.getTables(DBNAME1, TAB2).size());
  }
By default, the HMS Client side filtering is enabled
Disable the HMS server side filtering in order to see HMS client filtering behavior
@throws Exception
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestFilterHooks.java