HappenLee commented on code in PR #15463: URL: https://github.com/apache/doris/pull/15463#discussion_r1058800717
########## fe/fe-core/src/main/java/org/apache/doris/analysis/Expr.java: ########## @@ -2036,6 +2038,27 @@ private boolean customNullableAlgorithm() { if (fn.functionName().equalsIgnoreCase("concat_ws")) { return children.get(0).isNullable(); } + if (fn.functionName().equalsIgnoreCase(Operator.MULTIPLY.getName()) + && fn.getReturnType().isDecimalV3()) { + if ((children.get(0).getType().getPrecision() + children.get(1).getType().getPrecision() + > ScalarType.MAX_PRECISION || !children.get(0).getType().isDecimalV3() + || !children.get(1).getType().isDecimalV3()) && ConnectContext.get() != null + && ConnectContext.get().getSessionVariable().checkOverflowForDecimal()) { + return true; Review Comment: make sure the nullable type return same as BE,maybe coredump here -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org