mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 20:05:10 +00:00
" Fix overflow handling in sum() and avg(). sum: - aggregated into __int128 - detect overflow when computing result and log a warning if found avg: - fix division function to divide the accumulator type _sum (__int128 for integers) by _count Add unit tests for both cases Test: - manual test against Cassandra 3.11.3 to make sure the results in the scylla unit test agree with it. - unit(dev), cql_query_test(debug) Fixes #5536 " * 'cql3-sum-overflow' of https://github.com/bhalevy/scylla: test: cql_query_test: test avg overflow cql3: functions: protect against int overflow in avg test: cql_query_test: test sum overflow cql3: functions: detect and handle int overflow in sum exceptions: sort exception_code definitions exceptions: define additional cassandra CQL exceptions codes