[infinispan-issues] [JBoss JIRA] (ISPN-5682) The minimum aggregation function doesn't work with Strings

Adrian Nistor (JIRA) issues at jboss.org
Mon Aug 31 17:44:05 EDT 2015


    [ https://issues.jboss.org/browse/ISPN-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13103858#comment-13103858 ] 

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/7634c0996cb3a174d2a379f20961ddd35e376a15/query/src/test/java/org/infinispan/query/dsl/embedded/QueryDslConditionsTest.java) the street "Old Street", while "Bond Street" is expected.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the infinispan-issues mailing list