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


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/FlinkCalciteSqlValidator.java:
##########
@@ -172,6 +173,55 @@ public void validateLiteral(SqlLiteral literal) {
         super.validateLiteral(literal);
     }
 
+    @Override
+    public void validateCall(SqlCall call, SqlValidatorScope scope) {

Review Comment:
   `COUNT(*) FILTER (WHERE int_col = str_col)` misses this check, because 
Calcite never calls `validateCall` on a FILTER condition. I asked for the 
FILTER walk in #29835 to move into `validateCall`; rebasing on that covers it.



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