Skip to content

Commit

Permalink
add uts for decimal convert to int overflow case
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyang-li committed Jun 17, 2024
1 parent e6f247f commit 88c1e5d
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -711,16 +711,6 @@ class GlutenFunctionValidateSuite extends GlutenClickHouseWholeStageTransformerS
val q = "select sqrt(id),sqrt(id)='NaN' from tb_scrt"
runQueryAndCompare(q)(checkGlutenOperatorMatch[ProjectExecTransformer])
}
}

test("equalTo rewrite to isNaN") {
withTable("tb_scrt") {
sql("create table tb_scrt(id int) using parquet")
sql("""
|insert into tb_scrt values (-2147483648),(-2147483648)
|""".stripMargin)
val q = "select sqrt(id),sqrt(id)='NaN' from tb_scrt"
runQueryAndCompare(q)(checkGlutenOperatorMatch[ProjectExecTransformer])
}
}
}

0 comments on commit 88c1e5d

Please sign in to comment.