mihaibudiu commented on code in PR #3844:
URL: https://github.com/apache/calcite/pull/3844#discussion_r1686934245


##########
core/src/main/java/org/apache/calcite/sql/type/ArrayElementOperandTypeChecker.java:
##########
@@ -95,6 +97,14 @@ public ArrayElementOperandTypeChecker(boolean 
arrayMayBeNull, boolean elementMay
 
       return false;
     }
+
+    if (!arrayComponentType.equalsSansFieldNames(biggest)) {

Review Comment:
   the adjustTypeForArrayFunctions is used in the return type inference in the 
other places, and not in the operand type checker. This is related to the same 
question I had which is whether the type checker can modify the expression.



-- 
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]

Reply via email to