This is an automated email from the ASF dual-hosted git repository. lingmiao 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 dc01ea7ad9 [fix](nereids) Fix the substring compilation error caused by merge (#10965) dc01ea7ad9 is described below commit dc01ea7ad929dcb778e3011ea3130ad57f526362 Author: yinzhijian <373141...@qq.com> AuthorDate: Mon Jul 18 15:20:25 2022 +0800 [fix](nereids) Fix the substring compilation error caused by merge (#10965) Compilation error after merging due to Literal refactoring. Compilation failure: fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/Substring.java:[40,38] org.apache.doris.nereids.trees.expressions.Literal is abstract; cannot be instantiated --- .../apache/doris/nereids/trees/expressions/functions/Substring.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/Substring.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/Substring.java index b8c12a9e90..713e3d9efc 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/Substring.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/Substring.java @@ -18,7 +18,7 @@ package org.apache.doris.nereids.trees.expressions.functions; import org.apache.doris.nereids.trees.expressions.Expression; -import org.apache.doris.nereids.trees.expressions.Literal; +import org.apache.doris.nereids.trees.expressions.IntegerLiteral; import org.apache.doris.nereids.trees.expressions.TernaryExpression; import org.apache.doris.nereids.types.DataType; import org.apache.doris.nereids.types.StringType; @@ -37,7 +37,7 @@ public class Substring extends BoundFunction implements TernaryExpression { } public Substring(Expression str, Expression pos) { - super("substring", str, pos, new Literal(Integer.MAX_VALUE)); + super("substring", str, pos, new IntegerLiteral(Integer.MAX_VALUE)); } @Override --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org