amaliujia commented on a change in pull request #1587: [CALCITE-3272] Support 
TUMBLE as Table Valued Function including an enumerable implementation, 
stream.iq and DESCRIPTOR
URL: https://github.com/apache/calcite/pull/1587#discussion_r358063928
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java
 ##########
 @@ -2706,6 +2706,14 @@ public static int subtractMonths(long t0, long t1) {
     return x;
   }
 
+  public static long tumbleWindowStart(long tsMillis, long sizeMillis) {
+    return tsMillis / sizeMillis * sizeMillis;
 
 Review comment:
   done

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


With regards,
Apache Git Services

Reply via email to