xy2953396112 commented on a change in pull request #1475: [CALCITE-3371] 
BinaryExpression evaluate method support Mod, and fix LogicalCalc doc.
URL: https://github.com/apache/calcite/pull/1475#discussion_r328440951
 
 

 ##########
 File path: linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java
 ##########
 @@ -86,6 +86,14 @@ public static BinaryExpression add(Expression left, 
Expression right,
     throw Extensions.todo();
   }
 
+  /**
+   * Creates a BinaryExpression that represents an arithmetic
+   * mod operation that does not have overflow checking.
+   */
+  public static BinaryExpression mod(Expression left, Expression right) {
+    return makeBinary(ExpressionType.Mod, left, right);
 
 Review comment:
   'Expressions.mod()'  is used in ExpressionTest.

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