You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Thomas Nielsen (JIRA)" <ji...@apache.org> on 2008/02/04 22:47:10 UTC

[jira] Updated: (DERBY-2998) Add support for ROW_NUMBER() window function

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

Thomas Nielsen updated DERBY-2998:
----------------------------------

    Attachment: d2998-10.stat
                d2998-10.diff

No, you didn't miss the writeup Army. The wikipage is all there is, and I haven't kept it up to date :/ Mostly because I've been feeling my way forward with this while trying to understand the inner workings of Derby. I'll try to make up for it now and do a proper writeup for the proposed changes.

Attached is an updated patch d2998-10.diff. 
Still have some ordering issues, but where clauses and multiple row_number() columns are evaluated properly:
ij> 
select * from t;
A          |B          
-----------------------
10         |100        
20         |200        
30         |300        
40         |400        
50         |500        

5 rows selected
ij>  
select row_number() over (), tr.* from (select row_number() over () as r, t.* from t) as tr where r > 2;
row_number()        |R                   |A          |B          
-----------------------------------------------------------------
1                   |3                   |30         |300        
2                   |4                   |40         |400        
3                   |5                   |50         |500        

3 rows selected
ij>

> 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-10.diff, d2998-10.stat, d2998-4.diff, d2998-4.stat, d2998-5.diff, d2998-5.stat, d2998-6.diff, d2998-6.stat, d2998-7.diff, d2998-7.stat, d2998-8.diff, d2998-8.stat, d2998-9-derby.log, d2998-9.diff, d2998-9.stat, d2998-doc-1.diff, d2998-doc-1.stat, d2998-test.diff, d2998-test.stat, d2998-test2.diff, d2998-test2.stat, d2998-test3.diff, d2998-test3.stat
>
>
> 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.