Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 7058 invoked from network); 19 Jul 2010 16:04:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jul 2010 16:04:15 -0000 Received: (qmail 34098 invoked by uid 500); 19 Jul 2010 16:04:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 34056 invoked by uid 500); 19 Jul 2010 16:04:14 -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 34049 invoked by uid 99); 19 Jul 2010 16:04:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 16:04:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 16:04:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6JG3omn008886 for ; Mon, 19 Jul 2010 16:03:50 GMT Message-ID: <3236319.456111279555430443.JavaMail.jira@thor> Date: Mon, 19 Jul 2010 12:03:50 -0400 (EDT) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4736) ASSERT FAIL when code generating a column reference in a join predicate in presence of other outer join reordering In-Reply-To: <8954585.241621278522171151.JavaMail.jira@thor> 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/DERBY-4736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889900#action_12889900 ] Rick Hillegas commented on DERBY-4736: -------------------------------------- Thanks for the patch, Dag. It's a hopeful sign that this only involves a 1 line change to the engine code. If I understand this change correctly, it seems that you have replaced a full rebinding of all expressions with a more limited rebinding of just the result columns. I would think that a full rebinding would include the more limited rebinding of the result columns. Since you have just been through this pinball machine, can you explain why this fixes the problem? Thanks. > ASSERT FAIL when code generating a column reference in a join predicate in presence of other outer join reordering > ------------------------------------------------------------------------------------------------------------------ > > Key: DERBY-4736 > URL: https://issues.apache.org/jira/browse/DERBY-4736 > Project: Derby > Issue Type: Sub-task > Components: SQL > Affects Versions: 10.7.0.0 > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Attachments: derby-4736-1a.diff, derby-4736-1a.stat, derby-4736-1b.diff, derby-4736-1b.stat, derby-4736-1c.diff, derby-4736-1c.stat, loj-analysis.txt, query_plan_derby_4736.pdf > > > From schema given in DERBY-4712, this query gives an ASSERT with sane Derby: > rs = s.executeQuery("SELECT 1 FROM (T0 LEFT JOIN (T1 LEFT JOIN (T2 LEFT JOIN " + > " (T3 LEFT JOIN T4 ON 1=1) ON T2.X = T3.X) ON 1=1) ON 1=1) " + > " LEFT JOIN " + > " (T5 INNER JOIN T6 ON 1=1) " + > " ON T2.X = 1 "); > Cf the attachments in DERBY-4712 assert-bind-opt-trees.*. > From preliminary analysis, this error seems to be unrelated to the NPEs reported in DERBY-4712, so filing this as a sub-issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.