mihaibudiu commented on code in PR #4505:
URL: https://github.com/apache/calcite/pull/4505#discussion_r2487181220
##########
core/src/main/java/org/apache/calcite/plan/Strong.java:
##########
@@ -356,7 +358,8 @@ private static Map<SqlKind, Policy> createPolicyMap() {
map.put(SqlKind.CHECKED_TIMES, Policy.ANY);
map.put(SqlKind.CHECKED_DIVIDE, Policy.ANY);
- map.put(SqlKind.DIVIDE, Policy.ANY);
+ // DIVIDE behaves like ANY. However, (x/0) IS (NOT) NULL may not be
simplified.
Review Comment:
The change I am proposing is the most general explanation of what is
happening here.
Code comments should generally not be related to bugs fixed; bugs go away,
but the code stays.
Test comments can depend on bugs fixed.
--
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]