This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit d4af50191e2a9ed0f48242e888eedbe0a36627c2 Author: Kang <kxiao.ti...@gmail.com> AuthorDate: Thu Sep 14 23:44:49 2023 +0800 fix fe compile error --- .../java/org/apache/doris/nereids/util/TypeCoercionUtilsTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fe/fe-core/src/test/java/org/apache/doris/nereids/util/TypeCoercionUtilsTest.java b/fe/fe-core/src/test/java/org/apache/doris/nereids/util/TypeCoercionUtilsTest.java index fe9d6b5363..2fb3930ecf 100644 --- a/fe/fe-core/src/test/java/org/apache/doris/nereids/util/TypeCoercionUtilsTest.java +++ b/fe/fe-core/src/test/java/org/apache/doris/nereids/util/TypeCoercionUtilsTest.java @@ -701,25 +701,25 @@ public class TypeCoercionUtilsTest { public void testDecimalArithmetic() { Multiply multiply = new Multiply(new DecimalLiteral(new BigDecimal("987654.321")), new DecimalV3Literal(new BigDecimal("123.45"))); - Expression expression = TypeCoercionUtils.processBinaryArithmetic(multiply); + Expression expression = TypeCoercionUtils.processBinaryArithmetic(multiply, multiply.left(), multiply.right()); Assertions.assertEquals(expression.child(0), new Cast(multiply.child(0), DecimalV3Type.createDecimalV3Type(9, 3))); Divide divide = new Divide(new DecimalLiteral(new BigDecimal("987654.321")), new DecimalV3Literal(new BigDecimal("123.45"))); - expression = TypeCoercionUtils.processBinaryArithmetic(divide); + expression = TypeCoercionUtils.processBinaryArithmetic(divide, divide.left(), divide.right()); Assertions.assertEquals(expression.child(0), new Cast(multiply.child(0), DecimalV3Type.createDecimalV3Type(9, 3))); Add add = new Add(new DecimalLiteral(new BigDecimal("987654.321")), new DecimalV3Literal(new BigDecimal("123.45"))); - expression = TypeCoercionUtils.processBinaryArithmetic(add); + expression = TypeCoercionUtils.processBinaryArithmetic(add, add.left(), add.right()); Assertions.assertEquals(expression.child(0), new Cast(multiply.child(0), DecimalV3Type.createDecimalV3Type(9, 3))); Subtract sub = new Subtract(new DecimalLiteral(new BigDecimal("987654.321")), new DecimalV3Literal(new BigDecimal("123.45"))); - expression = TypeCoercionUtils.processBinaryArithmetic(sub); + expression = TypeCoercionUtils.processBinaryArithmetic(sub, sub.left(), sub.right()); Assertions.assertEquals(expression.child(0), new Cast(multiply.child(0), DecimalV3Type.createDecimalV3Type(9, 3))); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org