You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/07/02 14:54:19 UTC
[doris] branch master updated: [fix](fe-ut) fix ut compile bug (#10562)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new bfaa60b695 [fix](fe-ut) fix ut compile bug (#10562)
bfaa60b695 is described below
commit bfaa60b695c35a2c930566c8fd6678e5d9637208
Author: Mingyu Chen <mo...@gmail.com>
AuthorDate: Sat Jul 2 22:54:14 2022 +0800
[fix](fe-ut) fix ut compile bug (#10562)
Introduced from #10306
---
.../doris/nereids/util/ExpressionUtilsTest.java | 36 ++++++++++------------
1 file changed, 16 insertions(+), 20 deletions(-)
diff --git a/fe/fe-core/src/test/java/org/apache/doris/nereids/util/ExpressionUtilsTest.java b/fe/fe-core/src/test/java/org/apache/doris/nereids/util/ExpressionUtilsTest.java
index e60b322804..27d85b5f0b 100644
--- a/fe/fe-core/src/test/java/org/apache/doris/nereids/util/ExpressionUtilsTest.java
+++ b/fe/fe-core/src/test/java/org/apache/doris/nereids/util/ExpressionUtilsTest.java
@@ -37,16 +37,15 @@ public class ExpressionUtilsTest {
List<Expression> expressions;
Expression expr;
- expr = PARSER.createExpression("a");
+ expr = PARSER.parseExpression("a");
expressions = ExpressionUtils.extractConjunct(expr);
Assertions.assertEquals(expressions.size(), 1);
Assertions.assertEquals(expressions.get(0), expr);
-
- expr = PARSER.createExpression("a and b and c");
- Expression a = PARSER.createExpression("a");
- Expression b = PARSER.createExpression("b");
- Expression c = PARSER.createExpression("c");
+ expr = PARSER.parseExpression("a and b and c");
+ Expression a = PARSER.parseExpression("a");
+ Expression b = PARSER.parseExpression("b");
+ Expression c = PARSER.parseExpression("c");
expressions = ExpressionUtils.extractConjunct(expr);
Assertions.assertEquals(expressions.size(), 3);
@@ -55,15 +54,14 @@ public class ExpressionUtilsTest {
Assertions.assertEquals(expressions.get(2), c);
- expr = PARSER.createExpression("(a or b) and c and (e or f)");
+ expr = PARSER.parseExpression("(a or b) and c and (e or f)");
expressions = ExpressionUtils.extractConjunct(expr);
- Expression aOrb = PARSER.createExpression("a or b");
- Expression eOrf = PARSER.createExpression("e or f");
+ Expression aOrb = PARSER.parseExpression("a or b");
+ Expression eOrf = PARSER.parseExpression("e or f");
Assertions.assertEquals(expressions.size(), 3);
Assertions.assertEquals(expressions.get(0), aOrb);
Assertions.assertEquals(expressions.get(1), c);
Assertions.assertEquals(expressions.get(2), eOrf);
-
}
@Test
@@ -71,16 +69,15 @@ public class ExpressionUtilsTest {
List<Expression> expressions;
Expression expr;
- expr = PARSER.createExpression("a");
+ expr = PARSER.parseExpression("a");
expressions = ExpressionUtils.extractDisjunct(expr);
Assertions.assertEquals(expressions.size(), 1);
Assertions.assertEquals(expressions.get(0), expr);
-
- expr = PARSER.createExpression("a or b or c");
- Expression a = PARSER.createExpression("a");
- Expression b = PARSER.createExpression("b");
- Expression c = PARSER.createExpression("c");
+ expr = PARSER.parseExpression("a or b or c");
+ Expression a = PARSER.parseExpression("a");
+ Expression b = PARSER.parseExpression("b");
+ Expression c = PARSER.parseExpression("c");
expressions = ExpressionUtils.extractDisjunct(expr);
Assertions.assertEquals(expressions.size(), 3);
@@ -88,11 +85,10 @@ public class ExpressionUtilsTest {
Assertions.assertEquals(expressions.get(1), b);
Assertions.assertEquals(expressions.get(2), c);
-
- expr = PARSER.createExpression("(a and b) or c or (e and f)");
+ expr = PARSER.parseExpression("(a and b) or c or (e and f)");
expressions = ExpressionUtils.extractDisjunct(expr);
- Expression aAndb = PARSER.createExpression("a and b");
- Expression eAndf = PARSER.createExpression("e and f");
+ Expression aAndb = PARSER.parseExpression("a and b");
+ Expression eAndf = PARSER.parseExpression("e and f");
Assertions.assertEquals(expressions.size(), 3);
Assertions.assertEquals(expressions.get(0), aAndb);
Assertions.assertEquals(expressions.get(1), c);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org