@Override
    public Object parse(SourceData sourceData, int rowIndex, Context context) {
        Object bigDecimalObj = bigDecimalParser.parse(sourceData, rowIndex, context);
        BigDecimal bigDecimal = OperatorTools.parseBigDecimal(bigDecimalObj);
        if (integerParser != null) {
            Object integerObj = integerParser.parse(sourceData, rowIndex, context);
            int integer = OperatorTools.parseBigDecimal(integerObj).intValue();
            return truncate(bigDecimal, integer);
        }
        return truncate(bigDecimal);
    }
TruncateFunction  ->  truncate(numeric, cnt)
description:
- Return NULL if any parameter is NULL;
- Return the result of truncating 'numeric' values to 'cnt' decimal places.
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/arithmetic/TruncateFunction.java