[infinispan-issues] [JBoss JIRA] (ISPN-6968) Clarify Query DSL error message regarding number format
Adrian Nistor (JIRA)
issues at jboss.org
Wed Aug 24 04:18:00 EDT 2016
Adrian Nistor created ISPN-6968:
-----------------------------------
Summary: Clarify Query DSL error message regarding number format
Key: ISPN-6968
URL: https://issues.jboss.org/browse/ISPN-6968
Project: Infinispan
Issue Type: Enhancement
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Fix For: 9.0.0.Beta1, 9.0.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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list