Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 29947 invoked from network); 29 Aug 2006 18:51:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Aug 2006 18:51:43 -0000 Received: (qmail 71385 invoked by uid 500); 29 Aug 2006 18:51:42 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 71348 invoked by uid 500); 29 Aug 2006 18:51:42 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 71332 invoked by uid 99); 29 Aug 2006 18:51:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2006 11:51:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2006 11:51:41 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5FB097142E6 for ; Tue, 29 Aug 2006 18:48:24 +0000 (GMT) Message-ID: <28043118.1156877304389.JavaMail.jira@brutus> Date: Tue, 29 Aug 2006 11:48:24 -0700 (PDT) From: "A B (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-1681) Regression (wrong results): Join predicate can be ignored for left-most child in a chain of nested unions. In-Reply-To: <23117349.1155333793855.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1681?page=all ] A B resolved DERBY-1681. ------------------------ Fix Version/s: 10.3.0.0 Resolution: Fixed Derby Info: [Existing Application Impact, Regression] (was: [Regression, Patch Available, Existing Application Impact]) > Regression (wrong results): Join predicate can be ignored for left-most child in a chain of nested unions. > ---------------------------------------------------------------------------------------------------------- > > Key: DERBY-1681 > URL: http://issues.apache.org/jira/browse/DERBY-1681 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.1.3.1, 10.1.3.0, 10.2.1.0 > Reporter: A B > Assigned To: A B > Fix For: 10.1.4.0, 10.2.1.0, 10.3.0.0 > > Attachments: d1681_test.patch, d1681_test_v2.patch, d1681_v1.patch, DERBY-1681_v1.html > > > If Derby chooses to do a join between two FromTables and the right table is a chain of UNIONs, then the optimizer may choose to push the join predicate (if provided) down into the UNION and to both children of every UNION in the chain. But if the predicate cannot be pushed to the children of any of the UNIONs (except the top-level one) the predicate can end up being ignored altogether with respect to that UNION's children. The result is that query execution can return rows that do not satisfy the predicate. > This is a regression introduced in 10.1.2.4 and thus it affects 10.1.3 and 10.2. I came across this while tracing through code for DERBY-1633. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira