diff --git a/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenClickHouseDecimalSuite.scala b/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenClickHouseDecimalSuite.scala index 3aa498ea35c10..dfc2a9bb5453b 100644 --- a/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenClickHouseDecimalSuite.scala +++ b/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenClickHouseDecimalSuite.scala @@ -442,6 +442,11 @@ class GlutenClickHouseDecimalSuite ) } + test("Fix issue(6015) allow overflow when converting decimal to integer") { + val sql = "select int(cast(id * 9999999999 as decimal(29, 2))) from range(10)" + runQueryAndCompare(sql)(checkGlutenOperatorMatch[ProjectExecTransformer]) + } + def testFromRandomBase( sql: String, customCheck: DataFrame => Unit, diff --git a/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenFunctionValidateSuite.scala b/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenFunctionValidateSuite.scala index e2c724c48287e..e2ad349a57031 100644 --- a/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenFunctionValidateSuite.scala +++ b/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenFunctionValidateSuite.scala @@ -723,9 +723,4 @@ class GlutenFunctionValidateSuite extends GlutenClickHouseWholeStageTransformerS runQueryAndCompare(q)(checkGlutenOperatorMatch[ProjectExecTransformer]) } } - - test("Fix issue(6016) allow overflow when converting decimal to integer") { - val sql = "select int(cast(id * 10000000000 as decimal(29, 2))) from range(10)" - runQueryAndCompare(sql)(checkGlutenOperatorMatch[ProjectExecTransformer]) - } }