DonnyZone commented on a change in pull request #1981:
URL: https://github.com/apache/calcite/pull/1981#discussion_r453473001



##########
File path: 
core/src/main/java/org/apache/calcite/adapter/enumerable/RexImpTable.java
##########
@@ -3426,13 +3440,24 @@ abstract Expression implementSafe(RexToLixTranslator 
translator,
       translatedOperands.add(slidingInterval);
       translatedOperands.add(windowSize);
 
-      return Expressions.call(BuiltInMethod.HOPPING.method,
+
+      // handle the optional offset parameter.
+      if (call.getOperands().size() > 3) {
+        
translatedOperands.add(translator.translate(call.getOperands().get(3)));
+      } else {
+        // use 0 for the default value when offset parameter is missing.

Review comment:
       Also here




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