NobiGo commented on code in PR #4423:
URL: https://github.com/apache/calcite/pull/4423#discussion_r2156186922


##########
core/src/test/java/org/apache/calcite/test/JdbcTest.java:
##########
@@ -2928,16 +2926,14 @@ private void 
checkNullableTimestamp(CalciteAssert.Config config) {
         + " then \"name\" end)) T\n"
         + "from \"hr\".\"emps\"";
     final String plan = ""
-        + "      String case_when_value;\n"
-        + "              final org.apache.calcite.test.schemata.hr.Employee 
current = (org.apache"
-        + ".calcite.test.schemata.hr.Employee) inputEnumerator.current();\n"
-        + "              if (current.empid > current.deptno * 10) {\n"
+        + "              String case_when_value;\n"
+        + "              final org.apache.calcite.test.schemata.hr.Employee 
current = (org.apache.calcite.test.schemata.hr.Employee) 
inputEnumerator.current();\n"
+        + "              if 
(org.apache.calcite.runtime.SqlFunctions.toInt(org.apache.calcite.linq4j.tree.Primitive.integerCast(org.apache.calcite.linq4j.tree.Primitive.INT,
 current.empid, java.math.RoundingMode.DOWN)) > current.deptno * 10) {\n"

Review Comment:
   I haven't quite figured this out yet.



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