You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2021/06/23 19:52:36 UTC

[GitHub] [calcite] srini09 commented on a change in pull request #2444: [CALCITE-4644] Added PERCENTILE_CONT and PERCENTILE_DISC functions in…

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:
users@infra.apache.org