wangdiao commented on code in PR #4224:
URL: https://github.com/apache/calcite/pull/4224#discussion_r2017806901
##########
core/src/main/java/org/apache/calcite/sql/fun/SqlQuantifyOperator.java:
##########
@@ -118,4 +119,42 @@ public class SqlQuantifyOperator extends SqlInOperator {
}
return null;
}
+
+ @Override public SqlOperator not() {
+ if (kind == SqlKind.SOME) {
+ switch (comparisonKind) {
+ case EQUALS:
+ return SqlStdOperatorTable.ALL_NE;
+ case NOT_EQUALS:
+ return SqlStdOperatorTable.ALL_EQ;
+ case LESS_THAN_OR_EQUAL:
+ return SqlStdOperatorTable.ALL_GT;
+ case LESS_THAN:
+ return SqlStdOperatorTable.ALL_GE;
+ case GREATER_THAN_OR_EQUAL:
+ return SqlStdOperatorTable.ALL_LT;
+ case GREATER_THAN:
+ return SqlStdOperatorTable.ALL_LE;
+ default:
+ throw new AssertionError("unexpected SOME comparisonKind " + kind);
+ }
+ } else {
Review Comment:
Okay, I'll do 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]