@Override
    public Object parse(SourceData sourceData, int rowIndex, Context context) {
        Object stringObj1 = stringParser1.parse(sourceData, rowIndex, context);
        String str1 = OperatorTools.parseString(stringObj1);
        String str2 = "yyyy-MM-dd";
        if (stringParser2 != null) {
            Object stringObj2 = stringParser2.parse(sourceData, rowIndex, context);
            str2 = OperatorTools.parseString(stringObj2);
        }
        LocalDate date = LocalDate.parse(str1, getDateTimeFormatter(str2));
        return date.format(OUTPUT_FORMATTER);
    }
ToDateFunction  ->  to_date(str[, format])
description:
- Return NULL if 'str' is NULL;
- Return the result of converting the date string 'str' to a date in the format 'format'(default is 'yyyy-MM-dd') .
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/temporal/ToDateFunction.java