public static RowData cloneMeta(
            RowData from, RowData reuse, MetadataConverter[] converters) {
        GenericRowData ret;
        if (reuse instanceof GenericRowData) {
            ret = (GenericRowData) reuse;
        } else {
            ret = new GenericRowData(from.getArity());
        }

        for (int i = 0; i < converters.length; i++) {
            Object meta = converters[i].read(from);
            ret.setField(i, meta);
        }

        return ret;
    }
Support clone meta and physical RowData.
inlong-sort/sort-flink/sort-flink-v1.15/sort-connectors/iceberg/src/main/java/org/apache/inlong/sort/iceberg/utils/RowDataCloneUtil.java