MartijnVisser commented on code in PR #29835:
URL: https://github.com/apache/flink/pull/29835#discussion_r4772666141


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/FlinkCalciteSqlValidator.java:
##########
@@ -172,6 +173,13 @@ public void validateLiteral(SqlLiteral literal) {
         super.validateLiteral(literal);
     }
 
+    @Override
+    public void validateCall(final SqlCall call, final SqlValidatorScope 
scope) {
+        super.validateCall(call, scope);
+        // the conversion to a plan simplifies a comparison of an expression 
with itself away

Review Comment:
   This also rejects comparisons that simplification drops for other reasons, 
like `(v = w) IS NULL` and `TRUE OR v = w`, which master accepts. Can a test 
and the commit message cover that?



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