public static List<FieldSchema> getTableFields(HiveMetastoreClientWrapper client, ObjectIdentifier identifier)
            throws TException, NoSuchFieldException, IllegalAccessException {
        IMetaStoreClient metaStoreClient = getMetaStoreClient(client);
        return metaStoreClient.getSchema(identifier.getDatabaseName(), identifier.getObjectName());
    }
get hive table fields schema

@param client hive metastore client
@param identifier hive database and table name
@return hive field schema
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/hive/src/main/java/org/apache/inlong/sort/hive/util/HiveTableUtil.java