Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2852

Support multi-selector OR constraints in join queries

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.7
    • jackrabbit-core, query
    • None

    Description

      Our current join implementation doesn't support OR constraints that refer to more than one selector. For example the following query is not possible:

      SELECT a.* FROM [my:type] AS a INNER JOIN [my:type] as b ON a.foo = b.bar WHERE a.baz = 'x' OR b.baz = 'y'

      This limitation is a result of the way the join execution splits the query into per-selector components and merges the result based on the given join condition.

      A simple but often inefficient solution would be to process such OR constraints as post-processing filters like we already do for some other more complex constraint types.

      Attachments

        1. JCR-2852-outer-join-test.patch
          5 kB
          Alex Deparvu
        2. JCR-2852-NPE.patch
          1 kB
          Alex Deparvu
        3. JCR-2852.patch
          26 kB
          Alex Deparvu

        Issue Links

          Activity

            People

              stillalex Alex Deparvu
              jukkaz Jukka Zitting
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: