srini09 commented on a change in pull request #2444:
URL: https://github.com/apache/calcite/pull/2444#discussion_r657416460



##########
File path: core/src/main/java/org/apache/calcite/sql/type/OperandTypes.java
##########
@@ -369,6 +369,49 @@ private boolean hasFractionalPart(BigDecimal bd) {
         }
       };
 
+  /**
+   * Operand type-checking strategy type must be a positive numeric non-NULL
+   * literal in the range 0 - 1.
+   */
+  public static final SqlSingleOperandTypeChecker POSITIVE_NUMERIC_LITERAL =

Review comment:
       Maybe UNIT_INTERVAL_LITERAL suits here as the values are in [0,1].




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to