tanclary commented on code in PR #3207:
URL: https://github.com/apache/calcite/pull/3207#discussion_r1219934247
##########
core/src/main/java/org/apache/calcite/sql/type/SqlTypeTransforms.java:
##########
@@ -96,6 +96,21 @@ public abstract class SqlTypeTransforms {
return typeToTransform;
};
+ /**
+ * Parameter type-inference transform strategy where a derived type is
+ * transformed into the same type, but nullable if and only if the type
+ * of a call's operand #0 (0-based) is nullable.
+ */
+ public static final SqlTypeTransform ARG0_NULLABLE =
+ (opBinding, typeToTransform) -> {
+ RelDataType arg0 = opBinding.collectOperandTypes().get(0);
Review Comment:
similar comment to what i left on your other PR opBinding.getOperandType()
--
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]