[
https://issues.jboss.org/browse/ISPN-5682?page=com.atlassian.jira.plugin....
]
Adrian Nistor commented on ISPN-5682:
-------------------------------------
Minimum aggregation does work with Strings, see the
QueryDslConditionsTest.testMin/testGlobalMin.
The problem here seems to be different, more related to projections on properties of
embedded entities rather than the type of the property.
The minimum aggregation function doesn't work with Strings
----------------------------------------------------------
Key: ISPN-5682
URL:
https://issues.jboss.org/browse/ISPN-5682
Project: Infinispan
Issue Type: Bug
Components: Embedded Querying
Affects Versions: 8.0.0.Beta3
Reporter: Jakub Markos
Assignee: Adrian Nistor
Fix For: 8.1.0.Final
This query
{code}
public void testGroupBy7() {
QueryFactory qf = getQueryFactory();
Query q = qf.from(getModelFactory().getUserImplClass())
.select(Expression.min("addresses.street"))
.having("name").eq("Spider").toBuilder()
.build();
List<Object[]> list = q.list();
assertEquals(list.get(0)[0], "Bond Street");
}
{code}
returns in the context of QueryDslConditionsTest test class
(
https://github.com/infinispan/infinispan/blob/7634c0996cb3a174d2a379f2096...)
the street "Old Street", while "Bond Street" is expected.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)