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
The following commit(s) were added to refs/heads/branch-2.0 by this push: new b166f7ecb1 [Fix](Nereids) fix case when to if error in function signature (#24427) b166f7ecb1 is described below commit b166f7ecb19459bc03a6fd96618a72f2b65ee4bb Author: LiBinfeng <46676950+libinfeng...@users.noreply.github.com> AuthorDate: Fri Sep 15 14:44:18 2023 +0800 [Fix](Nereids) fix case when to if error in function signature (#24427) --- .../apache/doris/nereids/trees/expressions/functions/scalar/If.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/If.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/If.java index df8bc78a27..5d16e3ff8f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/If.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/If.java @@ -40,6 +40,7 @@ import org.apache.doris.nereids.types.FloatType; import org.apache.doris.nereids.types.HllType; import org.apache.doris.nereids.types.IntegerType; import org.apache.doris.nereids.types.LargeIntType; +import org.apache.doris.nereids.types.NullType; import org.apache.doris.nereids.types.SmallIntType; import org.apache.doris.nereids.types.StringType; import org.apache.doris.nereids.types.TinyIntType; @@ -59,6 +60,8 @@ public class If extends ScalarFunction implements TernaryExpression, ExplicitlyCastableSignature { public static final List<FunctionSignature> SIGNATURES = ImmutableList.of( + FunctionSignature.ret(NullType.INSTANCE) + .args(BooleanType.INSTANCE, NullType.INSTANCE, NullType.INSTANCE), FunctionSignature.ret(DateTimeV2Type.SYSTEM_DEFAULT) .args(BooleanType.INSTANCE, DateTimeV2Type.SYSTEM_DEFAULT, DateTimeV2Type.SYSTEM_DEFAULT), FunctionSignature.ret(DateV2Type.INSTANCE) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org