Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Feb 5, 2020
1 parent ccad7e6 commit 0ac6e47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ SELECT smallint(float('32767.6'));
SELECT smallint(float('-32768.4'));
SELECT smallint(float('-32768.6'));
SELECT int(float('2147483520'));
SELECT int(float('2147483392'));
SELECT int(float('2147483647'));
SELECT int(float('-2147483648.5'));
SELECT int(float('-2147483900'));
SELECT bigint(float('9223369837831520256'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,12 @@ struct<CAST(CAST(2147483520 AS FLOAT) AS INT):int>


-- !query
SELECT int(float('2147483392'))
SELECT int(float('2147483647'))
-- !query schema
struct<CAST(CAST(2147483392 AS FLOAT) AS INT):int>
struct<>
-- !query output
2147483392
java.lang.ArithmeticException
Casting 2.14748365E9 to int causes overflow


-- !query
Expand Down

0 comments on commit 0ac6e47

Please sign in to comment.