[fix](planner)nvl should match function signature in the same way as ifnull (#25849)
This commit is contained in:
@ -1517,7 +1517,8 @@ public class FunctionCallExpr extends Expr {
|
||||
fn.setReturnType(assignmentCompatibleType);
|
||||
}
|
||||
|
||||
} else if (fnName.getFunction().equalsIgnoreCase("ifnull")) {
|
||||
} else if (fnName.getFunction().equalsIgnoreCase("ifnull")
|
||||
|| fnName.getFunction().equalsIgnoreCase("nvl")) {
|
||||
Type[] childTypes = collectChildReturnTypes();
|
||||
Type assignmentCompatibleType = ScalarType.getAssignmentCompatibleType(childTypes[0], childTypes[1], true);
|
||||
if (assignmentCompatibleType != Type.INVALID) {
|
||||
|
||||
Reference in New Issue
Block a user