Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7CCD9BA9 for ; Thu, 29 Mar 2012 17:22:49 +0000 (UTC) Received: (qmail 17981 invoked by uid 500); 29 Mar 2012 17:22:49 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 17911 invoked by uid 500); 29 Mar 2012 17:22:49 -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 17802 invoked by uid 99); 29 Mar 2012 17:22:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 17:22:49 +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; Thu, 29 Mar 2012 17:22:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DB63A34DA54 for ; Thu, 29 Mar 2012 17:22:27 +0000 (UTC) Date: Thu, 29 Mar 2012 17:22:27 +0000 (UTC) From: "Jukka Zitting (Reopened) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1277300100.33593.1333041747905.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2051747550.71999.1327418680141.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Reopened] (JCR-3219) regression with self-join queries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-3219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting reopened JCR-3219: -------------------------------- Reopening to adjust resolution > regression with self-join queries > --------------------------------- > > Key: JCR-3219 > URL: https://issues.apache.org/jira/browse/JCR-3219 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-jcr-server, query, sql > Reporter: David Buchmann > Priority: Minor > Attachments: JCR-3219-test.patch > > > affects version 2.3.7 > running a query that joins on the same node type against 2.3.6 returns 1 result, while running it against 2.3.7 returns the same node 3 times. if i join two different node types, i get only one result row... > to reproduce: in my repository, i have 2 unstructured nodes with the same jcr:mimeType and one of them having the field zeronumber with value 0. > QueryManager qm = s.getWorkspace().getQueryManager(); > Query q = qm.createQuery("SELECT data.zeronumber FROM [nt:unstructured] AS data INNER JOIN [nt:unstructured] AS second ON data.[jcr:mimeType] = second.[jcr:mimeType] WHERE data.zeronumber = 0", Query.JCR_JQOM); > QueryResult r = q.execute(); > RowIterator i = r.getRows(); > while (i.hasNext()) { > Row n = i.nextRow(); > System.out.println(n.getPath("data")); > } > jukka suspects this could be introduced by JCR-3198 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira