@Test
  public void testHMSClientWithFilter() throws Exception {
    MetastoreConf.setBoolVar(conf, ConfVars.METASTORE_SERVER_FILTER_ENABLED, false);
    DBNAME1 = "db_testHMSClientWithFilter_1";
    DBNAME2 = "db_testHMSClientWithFilter_2";
    creatEnv(conf);

    testFilterForDb(false);
    testFilterForTables(false);
    testFilterForPartition(false);
    testFilterForCompaction();
    testFilterForDataConnector();
  }
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