public static DecimalType findDivisionDecimalType(
            int precision1, int scale1, int precision2, int scale2) {
        int scale = Math.max(6, scale1 + precision2 + 1);
        int precision = precision1 - scale1 + scale2 + scale;
        return adjustPrecisionScale(precision, scale);
    }
@Test
    void testFindDivisionDecimalType() {
        assertThat(LogicalTypeMerging.findDivisionDecimalType(32, 8, 38, 8))
                .hasPrecisionAndScale(38, 6);
        assertThat(LogicalTypeMerging.findDivisionDecimalType(30, 20, 30, 20))
                .hasPrecisionAndScale(38, 8);
    }