wForget commented on code in PR #4816:
URL: https://github.com/apache/calcite/pull/4816#discussion_r2881420726


##########
testkit/src/main/java/org/apache/calcite/sql/parser/SqlParserTest.java:
##########
@@ -1410,6 +1410,32 @@ private void checkLarge(int n) {
         .ok("VALUES (ROW((`A` BETWEEN ASYMMETRIC ((`B` OR (`C` AND `D`)) OR 
`E`) AND `F`)))");
   }
 
+  @Test void testBetweenInverse() throws Exception {

Review Comment:
   ```
       java.lang.AssertionError: not a rex operator
           at org.apache.calcite.util.Litmus.lambda$static$0(Litmus.java:31)
           at 
org.apache.calcite.sql.fun.SqlBetweenOperator.validRexOperands(SqlBetweenOperator.java:115)
           at org.apache.calcite.rex.RexCall.<init>(RexCall.java:93)
   ```
   
   This exception occurs in the RexCall constructor, and it seems I always need 
to construct a RexCall to hold the SqlBetweenOperator on sqlToRel.



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