]
Tristan Tarrant updated ISPN-6968:
----------------------------------
Fix Version/s: 9.1.0.Final
(was: 9.0.0.Final)
Clarify Query DSL error message regarding number format
-------------------------------------------------------
Key: ISPN-6968
URL:
https://issues.jboss.org/browse/ISPN-6968
Project: Infinispan
Issue Type: Enhancement
Affects Versions: 8.0.0.Final
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Fix For: 9.1.0.Final
The query:
{code}
Query query = queryFactory.from(User.class)
.select(property("name"), count("age"))
.having("age").gte(2.3)
.toBuilder().groupBy("name")
.build();
List<Object[]> list = query.list();
{code}
will result in an error:
{code}
org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for messageId=13
returned server error (status=0x85): org.hibernate.hql.ParsingException: ISPN028505:
Invalid numeric literal '2.3'
at
org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:343)
{code}
This is a bit confusing because it does not clearly state that an integer is expected.