Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2475

Query Filter looses property constraints for multiple and conditions for same property

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.12, 1.1.7
    • Component/s: query
    • Labels:
      None

      Description

      Current while evaluating a query like following where propa is a multi value property

      select [jcr:path] from [nt:base] where propa = 'a' and propa = 'c'
      

      Filter created by Query Engine only has one property restriction for propa = 'a'. This happens because FilterImpl uses a map to store the propertyRestrictions.

      Eventually query engine returns the right result as query engine evaluates both restrictions on the result set returned by index. However index does not get to know of other restrictions and would return more result than required.

      Expected - Filter gets access to all property restrictions.

        Attachments

        1. OAK-2475-c.patch
          24 kB
          Thomas Mueller
        2. OAK-2475-b.patch
          22 kB
          Thomas Mueller
        3. OAK-2475-multimap.patch
          3 kB
          Chetan Mehrotra

          Activity

            People

            • Assignee:
              thomasm Thomas Mueller
              Reporter:
              chetanm Chetan Mehrotra
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: