Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 17217 invoked from network); 5 Sep 2007 12:30:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2007 12:30:02 -0000 Received: (qmail 3863 invoked by uid 500); 5 Sep 2007 12:29:51 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 3827 invoked by uid 500); 5 Sep 2007 12:29:51 -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 3768 invoked by uid 99); 5 Sep 2007 12:29:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 05:29:51 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 12:31:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 61ECA714208 for ; Wed, 5 Sep 2007 05:29:33 -0700 (PDT) Message-ID: <22727195.1188995373265.JavaMail.root@brutus> Date: Wed, 5 Sep 2007 05:29:33 -0700 (PDT) From: "Thomas Nielsen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2998) Add support for ROW_NUMBER() window function In-Reply-To: <14732006.1186647103190.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-2998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525072 ] Thomas Nielsen commented on DERBY-2998: --------------------------------------- In ResultSetList.generateCore() - the method that actually does the work - I now handle the case of a RownumberColumnNode instance, and attempt to invoke the incrementor function in RowNumberAggregator over in exec. RowNumberAggregator extends SystemAggregator as of now. When execution gets to GenericPreparedStatement.getActivation() my "select row_number() from t;" fails with: ERROR XBCM2: Cannot create an instance of generated class org.apache.derby.exe.ac601a400fx0114xd591xad7axffffe275b2700. ERROR XJ001: Java exception: '(class: org/apache/derby/exe/ac601a400fx0114xd591xad7axffffe275b2700, method: e1 signature: ()Ljava/lang/Object;) Incompatible object argument for function call: java.lang.VerifyError'. >From what I can tell this means I'm either missing a generated class, or I'm passing the wrong type of argument to my RowNumberAggregator incrementor method? It would probably be good idea move the handling from ResultSetList.generateCore() to RowNumberColumnNode.generateExpression()? And the incrementor would perhaps be better placed in BaseAcitvation instead? Right now I feel like pounding nails with a shovel - you just know there's a better tool available for the job, you just have to find it... > Add support for ROW_NUMBER() window function > -------------------------------------------- > > Key: DERBY-2998 > URL: https://issues.apache.org/jira/browse/DERBY-2998 > Project: Derby > Issue Type: Sub-task > Components: SQL > Reporter: Thomas Nielsen > Assignee: Thomas Nielsen > Priority: Minor > > As part of implementing the overall OLAP Operations features of SQL (DERBY-581), implement the ROW_NUMBER() window function. > More information about this feature is available at http://wiki.apache.org/db-derby/OLAPRowNumber -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.