private static List<FieldRelation> createReplacerFieldRelations(List<StreamField> fieldList, String transformName,
            StringReplacerDefinition replacerDefinition, String preNodes, Map<String, StreamField> constantFieldMap) {
        Preconditions.expectNotBlank(preNodes, ErrorCodeEnum.INVALID_PARAMETER,
                "PreNodes of splitter should not be null");
        String preNode = preNodes.split(",")[0];
        List<ReplaceRule> replaceRules = replacerDefinition.getReplaceRules();
        Set<String> replaceFields = Sets.newHashSet();
        List<FieldRelation> fieldRelations = replaceRules.stream()
                .map(replaceRule -> parseReplaceRule(replaceRule, replaceFields, transformName, preNode))
                .collect(Collectors.toList());
        fieldRelations = cascadeFunctionRelations(fieldRelations);
        List<StreamField> filteredFieldList = fieldList.stream()
                .filter(streamFieldInfo -> !replaceFields.contains(streamFieldInfo.getFieldName()))
                .collect(Collectors.toList());
        fieldRelations.addAll(createFieldRelations(filteredFieldList, constantFieldMap));
        return fieldRelations;
    }
Create relation of fields in replace function.
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/sort/util/FieldRelationUtils.java