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

Support aggregation queries with embedded predicates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 15.0.0.Dev09
    • None

    Description

      It is not possible to parse an aggregation query if there is a predicate targeting an embedded indexed field.

      For instance given the model:

      /**
       * @Indexed(index="team")
       */
      message Team {
         /**
          * @Basic
          */
         required string name = 1;
         /**
          * @Embedded(includeDepth=2, structure=NESTED)
          */
         optional Player captain = 2;
         /**
          * @Embedded(includeDepth=2, structure=NESTED)
          */
         repeated Player players = 3;
      }
      
      message Player {
         /**
          * @Basic
          */
         required string nick = 1;
      }
      

      The following query does not work:

      select count(t) from Team t where t.name = 'fax' and t.captain.nick = 'mark' and t.players.nick is null group by t.name
      

      The error is:

      org.infinispan.objectfilter.ParsingException: ISPN028502: Unknown alias: captain.
      

      Attachments

        Activity

          People

            fercoli@redhat.com Fabio Massimo Ercoli
            fercoli@redhat.com Fabio Massimo Ercoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: