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

Update sql2.txt test to account for name property presence in non test nodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.6
    • query
    • None

    Description

      Test executed from sql2.txt [1] fail for some cases if property names used in test data are also used in non test data. For example when running with oak-lucene where the index definition also uses name property then test case fails as Lucene search also includes index related nodes.

      As a fix testcase should be modified to include testdata path restriction

      select [jcr:path]
        from [nt:base]
        where [name] is not null union all select [jcr:path]
        from [nt:base]
        where [name] is not null
      /oak:index/test-index/indexRules/nt:base/properties/allProps
      /oak:index/test-index/indexRules/nt:base/properties/allProps
      /oak:index/test-index/indexRules/nt:base/properties/prop1
      /oak:index/test-index/indexRules/nt:base/properties/prop1
      /test/a
      /test/a
      /test/b
      /test/b
      

      [1] https://svn.apache.org/repos/asf/jackrabbit/oak/trunk/oak-core/src/test/resources/org/apache/jackrabbit/oak/query/sql2.txt

      Attachments

        1. OAK-2296.patch
          1 kB
          Chetan Mehrotra

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: