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

Aggregating fields of embedded entities doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.1.0.Final
    • 8.0.0.Beta3
    • Embedded Querying
    • None

      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.

            anistor Adrian Nistor (Inactive)
            jmarkos Jakub Markos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: