[FIX](array)fix if function for array() #22553

[FIX](array)fix if function for array() #22553
This commit is contained in:
amory
2023-08-03 19:40:45 +08:00
committed by GitHub
parent 96a46302e8
commit 469886eb4e
3 changed files with 21 additions and 1 deletions

View File

@ -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);
}
}
}