After upgrade Flink from 1.6 to 1.13 (flink-table-planner-blink), the result of our program changed: before: 10.38288597, after: 10.38288600
We used to use "tableEnv.config().setDecimalContext(new MathContext(MathContext.DECIMAL128.getPrecision(), RoundingMode.DOWN))" with Flink 1.6, but flink-table-planner-blink seems to just ignore the config and use RoundingMode.HALF_UP and maybe DECIMAL(38, 18) is alose not enough for us.