Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5682

Aggregating fields of embedded entities doesn't work

    Details

      Description

      This query

         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");
      }
      

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  anistor Nistor Adrian
                  Reporter:
                  jmarkos Jakub Markos
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: