Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
0.12.0
-
None
-
None
-
Incompatible change
Description
hive> desc test2; OK l bigint None hive> select * from test2; OK 6666666666666666666 5555555555555555555 hive> select sum(l) from test2; OK -6224521851487329395
It's believed that a wrap-around error occurred. It's surprising that it happens only with two rows. Same query in MySQL returns:
mysql> select sum(l) from test; +----------------------+ | sum(l) | +----------------------+ | 12222222222222222221 | +----------------------+ 1 row in set (0.00 sec)
Hive should accommodate large number of rows. Overflowing with only two rows is very unusable.