[teiid-issues] [JBoss JIRA] (TEIID-4566) Ordered limit against view with window function fails

Paul Richardson (JIRA) issues at jboss.org
Tue Nov 8 15:21:00 EST 2016


    [ https://issues.jboss.org/browse/TEIID-4566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13319102#comment-13319102 ] 

Paul Richardson commented on TEIID-4566:
----------------------------------------

Cool. Thx!

Can't pretend to understand the details of this but sounds like you have a good handle on the problem :)

Did seem odd that the odata url having a $filter parameter made $top work ok.

> Ordered limit against view with window function fails
> -----------------------------------------------------
>
>                 Key: TEIID-4566
>                 URL: https://issues.jboss.org/browse/TEIID-4566
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: 8.12.7.6_3
>            Reporter: Paul Richardson
>            Assignee: Steven Hawkins
>             Fix For: 9.2
>
>         Attachments: Patient-service.zip, patient-vdb.xml, USStates-service.zip, usstates-vdb.xml
>
>
> With a view such as:
> create foreign table x (a string, b string, c integer, primary key (a, b)) options (updatable true); create view SvcView (RowId integer PRIMARY KEY, code string, name string) as select row_number() over (order by a) as rowid, a, b from x;
> A query that orders over the window function:
> select rowid, code, name from svcview order by rowid limit 1
> Will fail with an assertion error initializing the top level sort node.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list