@Override
    public Table getTable(String dbName, String tblName) {
        Table table;
        try {
            table = hmsOps.getTable(dbName, tblName);
        } catch (StarRocksConnectorException e) {
            LOG.error("Failed to get hive table [{}.{}.{}]", catalogName, dbName, tblName, e);
            throw e;
        } catch (Exception e) {
            LOG.error("Failed to get hive table [{}.{}.{}]", catalogName, dbName, tblName, e);
            return null;
        }

        return table;
    }
@Test
    public void testShowCreateHiveTbl() {
        HiveTable hiveTable = (HiveTable) hiveMetadata.getTable("db1", "table1");
        Assert.assertEquals("CREATE TABLE `table1` (\n" +
                "  `col2` int(11) DEFAULT NULL,\n" +
                "  `col1` int(11) DEFAULT NULL\n" +
                ")\n" +
                "PARTITION BY (col1)\n" +
                "PROPERTIES (\"location\" = \"hdfs://127.0.0.1:10000/hive\");",
                AstToStringBuilder.getExternalCatalogTableDdlStmt(hiveTable));
    }