liuyongvs commented on code in PR #3212:
URL: https://github.com/apache/calcite/pull/3212#discussion_r1214409643


##########
core/src/main/java/org/apache/calcite/sql/type/ReturnTypes.java:
##########
@@ -500,7 +515,7 @@ public static SqlCall stripSeparator(SqlCall call) {
    * Returns the element type of a MULTISET.
    */
   public static final SqlReturnTypeInference MULTISET_ELEMENT_NULLABLE =
-      MULTISET.andThen(SqlTypeTransforms.TO_MULTISET_ELEMENT_TYPE);
+      MULTISET.andThen(SqlTypeTransforms.TO_COLLECTION_ELEMENT_TYPE);

Review Comment:
   @JiajunBernoulli COLLECTION includes array and multiset, both have 
getComponentType, but doesn't include map type. map type has getKeyType and 
getValueType



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