Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22EC11030C for ; Mon, 22 Apr 2013 09:09:40 +0000 (UTC) Received: (qmail 440 invoked by uid 500); 22 Apr 2013 09:09:40 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 312 invoked by uid 500); 22 Apr 2013 09:09:39 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 297 invoked by uid 99); 22 Apr 2013 09:09:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Apr 2013 09:09:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jukka.zitting@gmail.com designates 209.85.219.53 as permitted sender) Received: from [209.85.219.53] (HELO mail-oa0-f53.google.com) (209.85.219.53) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Apr 2013 09:09:32 +0000 Received: by mail-oa0-f53.google.com with SMTP id m6so5741267oag.12 for ; Mon, 22 Apr 2013 02:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=4GkQQvL66WaKlNT56UHGo7R27A24wOYDRQB+wiVi8dg=; b=aP9RbOLk+YhSdgzFU9AtLSdF5fKLh/ep9YjS2lu6aSHj6yIq2d8G5xim706ZwzKadS ZgsbgVzxqq5HCLaCPOUTQUzLjOKG2gaKHIRCTthAnuydYNWddR/p/bkZKBPkkOCDUVQ7 wLIzD04RG8+r/ZLeyuZdX+Km91+ZKbZ7Gc/abRaCbTWvwMKTBNvjoeJ+53mh/hfdlZGO eXGG9YAY5OdEW15YiNF8359ZpyHS3AGvwGtoCthWRCoXjvXguclpQWYUBfcRjgs3GBj1 1berk8CRoBPsguxhoWRJNV914FxujO+wH+6qJ9g+0A8lEq3hxW9XzvxzQbkCtHJXK2a+ zsyw== X-Received: by 10.60.34.40 with SMTP id w8mr9419575oei.104.1366621751705; Mon, 22 Apr 2013 02:09:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.61.44 with HTTP; Mon, 22 Apr 2013 02:08:51 -0700 (PDT) In-Reply-To: References: From: Jukka Zitting Date: Mon, 22 Apr 2013 12:08:51 +0300 Message-ID: Subject: Re: Can the children of a non-visible node be listed? To: Oak devs Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Mon, Apr 22, 2013 at 11:28 AM, Lukas Eder wrote: > I had recently thought about something similar, in another context. > Specifically, should the following queries return "bar" or not? > > SELECT * FROM [nt:base] AS n > WHERE ISDESCENDANTNODE(n, '/foo') > > Or > > SELECT * FROM [nt:base] AS n > WHERE ISCHILDNODE(n, '/foo') I would have them return the "bar" node, based on the fact that both the ISDESCENDANTNODE and ISCHILDNODE constraints can be evaluated syntactically by looking only at the path "/foo/bar" without reading anything from the "foo" node. BR, Jukka Zitting