public Table getTable(String dbName, String tableName) {
        org.apache.hadoop.hive.metastore.api.Table table = client.getTable(dbName, tableName);
        StorageDescriptor sd = table.getSd();
        if (sd == null) {
            throw new StarRocksConnectorException("Table is missing storage descriptor");
        }

        if (HiveMetastoreApiConverter.isHudiTable(table.getSd().getInputFormat())) {
            return HiveMetastoreApiConverter.toHudiTable(table, catalogName);
        } else if (HiveMetastoreApiConverter.isKuduTable(table.getSd().getInputFormat())) {
            return HiveMetastoreApiConverter.toKuduTable(table, catalogName);
        } else {
            validateHiveTableType(table.getTableType());
            if (AcidUtils.isFullAcidTable(table)) {
                throw new StarRocksConnectorException(String.format(
                        "%s.%s is a hive transactional table(full acid), sr didn't support it yet", dbName, tableName));
            }
            if (table.getTableType().equalsIgnoreCase("VIRTUAL_VIEW")) {
                return HiveMetastoreApiConverter.toHiveView(table, catalogName);
            } else {
                return HiveMetastoreApiConverter.toHiveTable(table, catalogName);
            }
        }
    }
@Test
    public void testGetTable() {
        HiveMetaClient client = new MockedHiveMetaClient();
        HiveMetastore metastore = new HiveMetastore(client, "hive_catalog", MetastoreType.HMS);
        com.starrocks.catalog.Table table = metastore.getTable("db1", "tbl1");
        HiveTable hiveTable = (HiveTable) table;
        Assert.assertEquals("db1", hiveTable.getDbName());
        Assert.assertEquals("tbl1", hiveTable.getTableName());
        Assert.assertEquals(Lists.newArrayList("col1"), hiveTable.getPartitionColumnNames());
        Assert.assertEquals(Lists.newArrayList("col2"), hiveTable.getDataColumnNames());
        Assert.assertEquals("hdfs://127.0.0.1:10000/hive", hiveTable.getTableLocation());
        Assert.assertEquals(ScalarType.INT, hiveTable.getPartitionColumns().get(0).getType());
        Assert.assertEquals(ScalarType.INT, hiveTable.getBaseSchema().get(0).getType());
        Assert.assertEquals("hive_catalog", hiveTable.getCatalogName());
    }