db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Nielsen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2998) Add support for ROW_NUMBER() window function
Date Wed, 21 Nov 2007 15:23:43 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Thomas Nielsen updated DERBY-2998:

    Attachment: d2998-4.stat

Attaching 'd2998-4.diff' and 'd2998-4.stat' which includes optimization as well. It's still
a little rough around the edges, but seems to work for this query:
   select * from (select row_number() as r, t.* from t) as tr where r <= 2;

Comments are very welcome.

Tip: Uncomment the (crude) System.out.println() in BaseActivation see the computation.

> 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
>         Attachments: d2998-3.diff, d2998-3.stat, d2998-4.diff, d2998-4.stat, row_number_prototype-2c.diff,
> 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.

View raw message