olivrlee commented on code in PR #3391: URL: https://github.com/apache/calcite/pull/3391#discussion_r1304820120
########## core/src/main/java/org/apache/calcite/sql/type/ReturnTypes.java: ########## @@ -826,6 +826,28 @@ public static SqlCall stripSeparator(SqlCall call) { public static final SqlReturnTypeInference DECIMAL_QUOTIENT_NULLABLE = DECIMAL_QUOTIENT.andThen(SqlTypeTransforms.TO_NULLABLE); + /** + * Type-inference stratey whereby the result type of a call is + * {@link #DOUBLE} if both operands are integer types. + */ + public static final SqlReturnTypeInference DOUBLE_IF_INTEGER = opBinding -> { Review Comment: Maybe plural `DOUBLE_IF_INTEGERS` or `DOUBLE_IF_BOTH_INTEGERS` -- 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: commits-unsubscr...@calcite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org