rubenada commented on code in PR #5161:
URL: https://github.com/apache/calcite/pull/5161#discussion_r3727801226


##########
core/src/main/java/org/apache/calcite/rex/RexSimplify.java:
##########
@@ -3744,4 +3762,312 @@ void addSarg(Sarg sarg, boolean negate, RelDataType 
type) {
       }
     }
   }
+
+  /** Flips a comparison operator. e.g., GREATER_THAN → LESS_THAN. */
+  private static SqlKind flipComparison(SqlKind kind) {

Review Comment:
   This method should not be necessary, there is already SqlKind#reverse which 
seems to serve the same purpose



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