schulm commented on a change in pull request #448:
URL: https://github.com/apache/jackrabbit-oak/pull/448#discussion_r778115637



##########
File path: 
oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexQueryCommonTest.java
##########
@@ -142,6 +143,24 @@ public void descendantTest() throws Exception {
         });
     }
 
+    @Test
+    public void descendantTestWIthIndexTag() throws Exception {
+        Tree test = root.getTree("/").addChild("test");
+        test.addChild("a");
+        test.addChild("b");
+        root.commit();
+
+        assertEventually(() -> {
+            Iterator<String> result = executeQuery(
+                    "select [jcr:path] from [nt:base] where 
isdescendantnode('/test') option (index tag x)",
+                    "JCR-SQL2").iterator();
+            assertTrue(result.hasNext());
+            assertEquals("/test/a", result.next());

Review comment:
       Hi  @thomasmueller I've just created 
https://issues.apache.org/jira/browse/OAK-9653




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to