Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 86642 invoked from network); 11 May 2010 11:29:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 11:29:02 -0000 Received: (qmail 29804 invoked by uid 500); 11 May 2010 11:29:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 29746 invoked by uid 500); 11 May 2010 11:29:02 -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 29739 invoked by uid 99); 11 May 2010 11:29:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 11:29:02 +0000 X-ASF-Spam-Status: No, hits=-1412.8 required=10.0 tests=ALL_TRUSTED,AWL 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; Tue, 11 May 2010 11:29:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4BBSfp2006047 for ; Tue, 11 May 2010 11:28:41 GMT Message-ID: <14336130.2721273577321095.JavaMail.jira@thor> Date: Tue, 11 May 2010 07:28:41 -0400 (EDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4650) Predicates in HAVING clause should be pushed down to restricted VTIs In-Reply-To: <17830981.2671273576841848.JavaMail.jira@thor> 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/DERBY-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-4650: -------------------------------------- Attachment: test.diff The attached patch adds a test case to RestrictedVTITest that shows that the predicate is not pushed in the following query: select s_r, count(*) from table(integerList()) t group by s_r having s_r > 1 Only the rows with s_r > 1 have to be returned by the table function integerList, so pushing the predicate could be useful. Committed the new test case to trunk with revision 943088. > Predicates in HAVING clause should be pushed down to restricted VTIs > -------------------------------------------------------------------- > > Key: DERBY-4650 > URL: https://issues.apache.org/jira/browse/DERBY-4650 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.6.1.0 > Reporter: Knut Anders Hatlen > Priority: Minor > Attachments: test.diff > > > If you perform a query with an aggregate function against a restricted table function, the predicates in the HAVING clause are not pushed down to the table function. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.