JiajunBernoulli commented on code in PR #3237:
URL: https://github.com/apache/calcite/pull/3237#discussion_r1225024684
##########
core/src/main/java/org/apache/calcite/sql/type/ReturnTypes.java:
##########
@@ -427,6 +427,13 @@ public static SqlCall stripSeparator(SqlCall call) {
public static final SqlReturnTypeInference VARCHAR_2000_NULLABLE =
VARCHAR_2000.andThen(SqlTypeTransforms.TO_NULLABLE);
+ /**
+ * Type-inference strategy that always returns "VARCHAR" with nulls
+ * allowed if any of the operands allow nulls.
+ */
+ public static final SqlReturnTypeInference VARCHAR_NULLABLE =
Review Comment:
Can we declare another `VARCHAR`?
Because
`VARCHAR_4` -> `VARCHAR_4_NULLABLE`;
`VARCHAR_2000` -> `VARCHAR_2000_NULLABLE`;
--
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]