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

Automatically convert *all* "or" queries to "union" for SQL-2, take 2

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.14, 1.6.0
    • Component/s: query
    • Labels:
      None

      Description

      OAK-4681 is trying to convert "or" SQL-2 queries to union (if that's faster). However, the following nested case is not yet converted fully to a union (one "or" is converted, but the other one is not):

      select * from [nt:unstructured] as [c] 
      where isdescendantnode('/tmp') 
      and ([a]=1 or [b]=2) and ([c]=3 or [d]=4)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thomasm Thomas Mueller
                Reporter:
                thomasm Thomas Mueller
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: