pfzhan commented on code in PR #3326:
URL: https://github.com/apache/calcite/pull/3326#discussion_r1280066573


##########
core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java:
##########
@@ -3315,6 +3315,13 @@ private void 
checkReduceNullableToNotNull(ReduceExpressionsRule<?> rule) {
     checkReduceNullableToNotNull(rule);
   }
 
+  @Test void testReduceCastDecimal() {
+    final String sql = "SELECT CAST( ( (2) / SQRT(3.0) ) AS NUMERIC(18, 0) ) * 
SQRT(3.0)";
+    sql(sql).withRule(CoreRules.PROJECT_REDUCE_EXPRESSIONS)
+        .withRelBuilderSimplify(true)
+        .check();
+  }
+

Review Comment:
   Got it, It's not necessary, I will put this test to the SqlOperatorTest. 



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