This is an automated email from the ASF dual-hosted git repository.
changchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new 10471954a [GLUTEN-6016][CH] Add uts for decimal convert to int
overflow case (#6018)
10471954a is described below
commit 10471954a2cf944ba082623c6dd66da62a4deeef
Author: 李扬 <[email protected]>
AuthorDate: Wed Jun 19 14:57:22 2024 +0800
[GLUTEN-6016][CH] Add uts for decimal convert to int overflow case (#6018)
* add uts for decimal convert to int overflow case
* add uts for decimal convert to int overflow case
* add uts for decimal convert to int overflow case
---
.../org/apache/gluten/execution/GlutenClickHouseDecimalSuite.scala | 5 +++++
1 file changed, 5 insertions(+)
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 892d2ff61..088487101 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
@@ -443,6 +443,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,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]