mihaibudiu commented on code in PR #4402:
URL: https://github.com/apache/calcite/pull/4402#discussion_r2135352976


##########
core/src/main/java/org/apache/calcite/sql/SqlOperator.java:
##########
@@ -1036,6 +1036,19 @@ public <R> void acceptCall(
     return null;
   }
 
+  /**
+   * Returns whether this is a safe operator that doesn't throw any exception.
+   *
+   * <p> If an operator is a safe operator, we will check its parameters to 
determine
+   * if the entire expression is safe.
+   *
+   * <p>For example, {@code 1/0 + null} is not safe. Because even though the
+   * {@code SqlStdOperatorTable.PLUS} is safe operator but its operands is not 
safe.
+   */
+  public Boolean isSafeOperator() {

Review Comment:
   the comments cannot have "we", there is no "we" when the compiler runs.
   this is a very important function, the documentation should be very crisp 
about what is does.
   



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

To unsubscribe, e-mail: [email protected]

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

Reply via email to