liuyongvs commented on code in PR #3238:
URL: https://github.com/apache/calcite/pull/3238#discussion_r1218855816
##########
core/src/main/java/org/apache/calcite/sql/type/ReturnTypes.java:
##########
@@ -536,6 +536,18 @@ public static SqlCall stripSeparator(SqlCall call) {
public static final SqlReturnTypeInference TO_MAP =
ARG0.andThen(SqlTypeTransforms.TO_MAP);
+ /**
+ * Returns a MAP type.
+ *
+ * <p>For example, given {@code STRING}, returns
+ * {@code (STRING, STRING) MAP}.
+ */
+ public static final SqlReturnTypeInference IDENTITY_TO_MAP =
+ ARG0.andThen(SqlTypeTransforms.IDENTITY_TO_MAP);
+
+ public static final SqlReturnTypeInference IDENTITY_TO_MAP_NULLABLE =
Review Comment:
added
--
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]