@Override
    public void dropDb(String dbName, boolean isForceDrop) throws MetaNotFoundException {
        if (listTableNames(dbName).size() != 0) {
            throw new StarRocksConnectorException("Database %s not empty", dbName);
        }

        hmsOps.dropDb(dbName, isForceDrop);
    }
@Test
    public void dropDbTest() {
        ExceptionChecker.expectThrowsWithMsg(StarRocksConnectorException.class,
                "Database d1 not empty",
                () -> hiveMetadata.dropDb("d1", true));

        ExceptionChecker.expectThrowsWithMsg(MetaNotFoundException.class,
                "Failed to access database empty_db",
                () -> hiveMetadata.dropDb("empty_db", true));
    }