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


##########
core/src/main/java/org/apache/calcite/sql/type/SqlTypeTransforms.java:
##########
@@ -98,6 +98,17 @@ public abstract class SqlTypeTransforms {
           opBinding.getTypeFactory().createTypeWithNullability(
               requireNonNull(typeToTransform, "typeToTransform"), true);
 
+  /**
+   * Parameter type-inference transform strategy where a derived type is
+   * transformed into the same type with nulls allowed if the result is not 
floating point.
+   */
+  public static final SqlTypeTransform FORCE_NULLABLE_NON_FP =
+      (opBinding, typeToTransform) -> {
+        boolean nullable = 
!SqlTypeName.APPROX_TYPES.contains(typeToTransform.getSqlTypeName());

Review Comment:
   all these results inherit the nullability of the operands, but divide_0_null 
is always 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]

Reply via email to