]
Adrian Nistor updated ISPN-5780:
--------------------------------
Git Pull Request:
SumAccumulator should behave according to JPA spec
--------------------------------------------------
Key: ISPN-5780
URL:
https://issues.jboss.org/browse/ISPN-5780
Project: Infinispan
Issue Type: Bug
Components: Embedded Querying
Affects Versions: 8.0.0.Final
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Fix For: 8.1.0.Alpha2, 8.1.0.Final, 8.0.2.Final
Currently it just preserves the type of the field, which can easily lead to overflow. The
JPA spec tries to avoid it by widening the numeric type, see 10.2.7.4. JPQL Aggregate
Functions of JPA spec here:
http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13946/ejb3_langref.html