public boolean tableExists(String catalogName, String dbName, String tblName) {
        Optional<ConnectorMetadata> connectorMetadata = getOptionalMetadata(catalogName);
        return connectorMetadata.map(metadata -> metadata.tableExists(dbName, tblName)).orElse(false);
    }
@Test
    public void testTableExists() throws TException {
        MetadataMgr metadataMgr = AnalyzeTestUtil.getConnectContext().getGlobalStateMgr().getMetadataMgr();
        new Expectations(metadataMgr) {
            {
                metadataMgr.tableExists("iceberg_catalog", "iceberg_db", "iceberg_tbl");
                result = true;
            }
        };
        Assert.assertTrue(metadataMgr.tableExists("iceberg_catalog", "iceberg_db", "iceberg_tbl"));
    }