Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-237 Run Jackrabbit query tests
  3. OAK-475

Query tck test SameNodeJoinConditionTest failing with ParseException

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6
    • core, jcr
    • None

    Description

      The SameNodeJoinConditionTest test is failing with a parsing exception.
      As this is not failing due to some missing feature, I think the test should be fixed.

      Query

      select * from [nt:unstructured] AS [left] INNER JOIN [nt:unstructured] AS [right] ON ISSAMENODE([left], [right], [.]) where ISDESCENDANTNODE([right], [/testroot])
      

      Trace

      Caused by: java.text.ParseException: Query: select * from [nt:unstructured] AS [left] INNER JOIN [nt:unstructured] AS [right] ON ISSAMENODE([left], [right], [.])(*)where ISDESCENDANTNODE([right], [/testroot]); expected: absolute path
      	at org.apache.jackrabbit.oak.query.SQL2Parser.getSyntaxError(SQL2Parser.java:1104)
      	at org.apache.jackrabbit.oak.query.SQL2Parser.readAbsolutePath(SQL2Parser.java:458)
      	at org.apache.jackrabbit.oak.query.SQL2Parser.parseJoinCondition(SQL2Parser.java:235)
      	at org.apache.jackrabbit.oak.query.SQL2Parser.parseSource(SQL2Parser.java:219)
      	at org.apache.jackrabbit.oak.query.SQL2Parser.parse(SQL2Parser.java:123)
      

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: