xuyangzhong commented on a change in pull request #17547: URL: https://github.com/apache/flink/pull/17547#discussion_r734385121
########## File path: flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/expressions/SqlExpressionTest.scala ########## @@ -124,8 +124,8 @@ class SqlExpressionTest extends ExpressionTestBase { testSqlApi("ROUND(-12.345, 2)", "-12.35") testSqlApi("PI()", "3.141592653589793") testSqlApi("E()", "2.718281828459045") - testSqlApi("truncate(42.345)", "42") - testSqlApi("truncate(cast(42.345 as decimal(5, 3)), 2)", "42.34") + testSqlApi("truncate(42.345)", "42.000") + testSqlApi("truncate(cast(42.345 as decimal(5, 3)), 2)", "42.340") Review comment: When the rule PROJECT_REDUCE_EXPRESSIONS is added into ExpressionTestBase, the bug [FLINK-23614] happens. And the bug is only fixed in 1.15. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org