Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 73815 invoked from network); 27 Mar 2008 09:40:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Mar 2008 09:40:03 -0000 Received: (qmail 61851 invoked by uid 500); 27 Mar 2008 09:39:58 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 61790 invoked by uid 500); 27 Mar 2008 09:39:58 -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 61744 invoked by uid 99); 27 Mar 2008 09:39:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2008 02:39:57 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2008 09:39:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BF1B5234C0C5 for ; Thu, 27 Mar 2008 02:37:24 -0700 (PDT) Message-ID: <1140674720.1206610644781.JavaMail.jira@brutus> Date: Thu, 27 Mar 2008 02:37:24 -0700 (PDT) From: "Dyre Tjeldvoll (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3138) Optimizer error when vtis are invoked with correlated references to outer query blocks In-Reply-To: <14296100.1192818350719.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 [ https://issues.apache.org/jira/browse/DERBY-3138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dyre Tjeldvoll updated DERBY-3138: ---------------------------------- Fix Version/s: 10.4.0.0 This issue has no fix version, but has been checked in to trunk after the 10.3 branch was cut, and has not been merged to the 10.3 branch (before the last release). (Some have been checked into trunk after 10.4 was cut and then merged to 10.4). > Optimizer error when vtis are invoked with correlated references to outer query blocks > -------------------------------------------------------------------------------------- > > Key: DERBY-3138 > URL: https://issues.apache.org/jira/browse/DERBY-3138 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.4.0.0 > Reporter: Rick Hillegas > Assignee: Rick Hillegas > Fix For: 10.4.0.0 > > Attachments: derby-3138-fix-aa.diff > > > The following query works fine in 10.3, but raises an optimizer error in the mainline: > select s.schemaname, t.tableName > from sys.sysschemas s, sys.systables t > where t.schemaid=s.schemaid > and exists > ( > select vti.* > from table( syscs_diag.space_table( s.schemaname, t.tableName ) ) as vti > where vti.numfreepages > -1 > ) > ; > In the mainline, it raises the following error: > ERROR 42Y69: No valid execution plan was found for this statement. This may have one of two causes: either you specified a hash join strategy when hash join is not allowed (no optimizable equijoin) or you are attempting to join two external virtual tables, each of which references the other, and so the statement cannot be evaluated. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.