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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.14, 1.6.0
    • query
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: