[FIX](map)fix element_at in old planner make fe exception and regress cases from ck #29241

This commit is contained in:
amory
2023-12-29 01:00:47 +08:00
committed by GitHub
parent ce13a1d951
commit 7d44c5a1f1
3 changed files with 207 additions and 1 deletions

View File

@ -52,7 +52,8 @@ public class FunctionTypeDeducers {
} else if (args[0].isNull()) {
// first arg is null, later element is not contains
return args[argIdx];
} else if (Type.isImplicitlyCastable(args[argIdx], ((ArrayType) args[0]).getItemType(), false, true)) {
} else if (args[0] instanceof ArrayType
&& Type.isImplicitlyCastable(args[argIdx], ((ArrayType) args[0]).getItemType(), false, true)) {
return args[argIdx];
} else {
return null;