public static ShowResultSet execute(ShowStmt statement, ConnectContext context) {
        return GlobalStateMgr.getCurrentState().getShowExecutor().showExecutorVisitor.visit(statement, context);
    }
@Test
    public void testShowCreateExternalCatalog() throws AnalysisException, DdlException {
        new MockUp<CatalogMgr>() {
            @Mock
            public Catalog getCatalogByName(String name) {
                Map<String, String> properties = new HashMap<>();
                properties.put("hive.metastore.uris", "thrift://hadoop:9083");
                properties.put("type", "hive");
                Catalog catalog = new Catalog(1, "test_hive", properties, "hive_test");
                return catalog;
            }
        };
        ShowCreateExternalCatalogStmt stmt = new ShowCreateExternalCatalogStmt("test_hive");

        ShowResultSet resultSet = ShowExecutor.execute(stmt, ctx);

        Assert.assertEquals("test_hive", resultSet.getResultRows().get(0).get(0));
        Assert.assertEquals("CREATE EXTERNAL CATALOG `test_hive`\n" +
                "comment \"hive_test\"\n" +
                "PROPERTIES (\"type\"  =  \"hive\",\n" +
                "\"hive.metastore.uris\"  =  \"thrift://hadoop:9083\"\n" +
                ")", resultSet.getResultRows().get(0).get(1));
    }