xuzifu666 commented on code in PR #4628:
URL: https://github.com/apache/calcite/pull/4628#discussion_r2544725430


##########
core/src/test/java/org/apache/calcite/rex/RexProgramTest.java:
##########
@@ -4039,6 +4039,13 @@ private void checkSarg(String message, Sarg sarg,
     checkSimplify(or(isNull(ref), like(ref, literal("%"), literal("#"))),
         "true");
     checkSimplifyUnchanged(like(ref, literal("%A")));
+
+    RexCall simplifyLike = (RexCall) simplify.simplify(like(ref, 
literalVarchar("%%A")));
+    
assertThat(simplifyLike.getOperands().get(1).getType().getSqlTypeName().name(), 
is("VARCHAR"));

Review Comment:
   I added test case here,and before this modification, it would be determined 
as a ```CHAR``` type here. @mihaibudiu 



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