Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
I'd like to propose to enlarge the accumulator and result type. Reason is simply that an integer overflow is likely to occur especially for these "narrow" types. Even just the sum() of just two tinyint of 100 would return -56, which is just wrong.
Probably like this.
If we decide to do so, we should do it in 2.2.
Attachments
Issue Links
- is related to
-
CASSANDRA-12417 Built-in AVG aggregate is much less useful than it should be
- Resolved
- relates to
-
CASSANDRA-9671 sum() and avg() functions missing for smallint and tinyint types
- Resolved