Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 77095 invoked from network); 18 Mar 2011 16:22:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Mar 2011 16:22:51 -0000 Received: (qmail 81084 invoked by uid 500); 18 Mar 2011 16:22:51 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 81042 invoked by uid 500); 18 Mar 2011 16:22:51 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 81035 invoked by uid 99); 18 Mar 2011 16:22:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 16:22:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 16:22:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C01473AF435 for ; Fri, 18 Mar 2011 16:22:29 +0000 (UTC) Date: Fri, 18 Mar 2011 16:22:29 +0000 (UTC) From: "Alex Parvulescu (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1631199252.11965.1300465349783.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <23530065.262831293009720722.JavaMail.jira@thor> Subject: [jira] Updated: (JCR-2852) Support multi-selector OR constraints in join queries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alex Parvulescu updated JCR-2852: --------------------------------- Attachment: JCR-2852-outer-join-test.patch Attached a simple Outer Join test > Support multi-selector OR constraints in join queries > ----------------------------------------------------- > > Key: JCR-2852 > URL: https://issues.apache.org/jira/browse/JCR-2852 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-core, query > Reporter: Jukka Zitting > Attachments: JCR-2852-NPE.patch, JCR-2852-outer-join-test.patch, JCR-2852.patch > > > Our current join implementation doesn't support OR constraints that refer to more than one selector. For example the following query is not possible: > SELECT a.* FROM [my:type] AS a INNER JOIN [my:type] as b ON a.foo = b.bar WHERE a.baz = 'x' OR b.baz = 'y' > This limitation is a result of the way the join execution splits the query into per-selector components and merges the result based on the given join condition. > A simple but often inefficient solution would be to process such OR constraints as post-processing filters like we already do for some other more complex constraint types. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira