Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2422

Support JCR-SQL2 correlated subqueries

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Major
    • None
    • None
    • None

    Description

      MODE-869 added support for JCR-SQL2 subqueries, but requires that they be non-correlated. It would be extremely helpful if that wasn't the case. Take the following as an example:

      SELECT artifact1.* FROM [sramp:baseArtifactType] AS artifact1 
      WHERE artifact1.[sramp:artifactType] = 'Part' AND 'element' 
      NOT IN (
        SELECT relationship2.[sramp:relationshipType] 
        FROM [sramp:relationship] AS relationship2 
        WHERE ISCHILDNODE(relationship2,artifact1)
      )
      

      Since I can't correlate the subquery's artifact1 with the parent query's selector, I'm not sure how else to accomplish something like that (other than in-memory).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brmeyer_jira Brett Meyer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: