Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Impala 2.0, Impala 2.3.0
-
None
Description
Currently, not all expressions will result in NULL when an overflow happens. So determining if the resulting value is valid may be very difficult.
Easy example:
[nightly-3.vpc.cloudera.com:21000] > select sum(99999999999999999999999999999999999999) from sample_07; Query: select sum(99999999999999999999999999999999999999) from sample_07 +---------------------------------------------+ | sum(99999999999999999999999999999999999999) | +---------------------------------------------+ | -48332794867108158136654998487907173175 | +---------------------------------------------+
the sum above should never be negative, but if it were a positive value and the sum were over a column it would be hard to tell if the value was correct.
Attachments
Issue Links
- is duplicated by
-
IMPALA-2633 Inconsistent handling of out-of-range values in integer casts
- Resolved
-
IMPALA-43 Impala needs to log numeric overflow errors
- Resolved
- is related to
-
IMPALA-2633 Inconsistent handling of out-of-range values in integer casts
- Resolved
- relates to
-
IMPALA-3345 Investigate issues with __builtin_*_overflow in LLVM
- Resolved
-
IMPALA-865 Impala will return incorrect result on int overflow without warning
- Open