chucheng92 commented on code in PR #3705:
URL: https://github.com/apache/calcite/pull/3705#discussion_r1507353662
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorUtil.java:
##########
@@ -1375,6 +1376,14 @@ private static void adjustTypeForMultisetConstructor(
} else {
elementType = oddType;
}
+ if (call.getOperator().getName().equals("ARRAY_INSERT") && i == 1) {
Review Comment:
pls don't modify `adjustTypeForMultisetConstructor` directly. just add a
static method to cast inserted element to array componentType.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]