public static BigDecimal gcd(BigDecimal a, BigDecimal b) {
        if (b.compareTo(BigDecimal.ZERO) == 0) {
            return a;
        }
        BigDecimal remainder = a.remainder(b);
        return gcd(b, remainder);
    }
GcdFunction -> gcd(numeric_type,numeric_type)
description:
- Return NULL if any parameter is null
- Return 0 if both inputs are zero
- Return greatest common divisor (the largest positive number that divides both inputs with no remainder).
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/arithmetic/GcdFunction.java