@Override
    public void dropPartition(String dbName, String tableName, List<String> partValues, boolean deleteData) {
        List<String> partitionColNames = getTable(dbName, tableName).getPartitionColumnNames();
        try {
            metastore.dropPartition(dbName, tableName, partValues, deleteData);
        } finally {
            String partitionName = PartitionUtil.toHivePartitionName(partitionColNames, partValues);
            HivePartitionName hivePartitionName = HivePartitionName.of(dbName, tableName, partitionName);
            invalidatePartition(hivePartitionName);
        }
    }
@Test
    public void testDropPartition() {
        CachingHiveMetastore cachingHiveMetastore = new CachingHiveMetastore(
                metastore, executor, expireAfterWriteSec, refreshAfterWriteSec, 1000, false);
        cachingHiveMetastore.dropPartition("db", "table", Lists.newArrayList("1"), false);
    }