[FIX](array)fix if function for array() #22553
[FIX](array)fix if function for array() #22553
This commit is contained in:
@ -1707,6 +1707,9 @@ public class FunctionCallExpr extends Expr {
|
||||
&& args[ix].isDecimalV3OrContainsDecimalV3())) {
|
||||
// Do not do this cast if types are both decimalv3 with different precision/scale.
|
||||
uncheckedCastChild(args[ix], i);
|
||||
} else if (fnName.getFunction().equalsIgnoreCase("if")
|
||||
&& argTypes[i].isArrayType() && ((ArrayType) argTypes[i]).getItemType().isNull()) {
|
||||
uncheckedCastChild(args[ix], i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user