[teiid-issues] [JBoss JIRA] Resolved: (TEIID-1566) More complex join: ORDER BY and LIMIT not pushed down
Steven Hawkins (JIRA)
jira-events at lists.jboss.org
Mon Apr 25 16:21:19 EDT 2011
[ https://issues.jboss.org/browse/TEIID-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Hawkins resolved TEIID-1566.
-----------------------------------
Labels: 7.4CR1 (was: )
Resolution: Done
Updated the projection raising logic to handled aliased columns used in the order by.
> More complex join: ORDER BY and LIMIT not pushed down
> ------------------------------------------------------
>
> Key: TEIID-1566
> URL: https://issues.jboss.org/browse/TEIID-1566
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.4
> Reporter: Mark Addleman
> Assignee: Steven Hawkins
> Labels: 7.4CR1
> Fix For: 7.4
>
>
> Query: SELECT B."SYSID", B."USERID", J0.APPNAME as "SYSOFUSER at APPNAME", B."NAME", B."PROC", B."SUSPEND", B."UID", (select count(*) from (select * from notes.RETRIEVE_NOTES where OBJECT_PKEY = xmlserialize(xmlelement("SECURITY.BASEUSER", XMLATTRIBUTES(B."SYSID",B."USERID")) as String)) as foo) as C_notesForObject, 'SECURITY.BASEUSER' as "__objecttype__" FROM "SECURITY.BASEUSER" as B left join security.sysinfo J0 on J0.sysid=B.sysid ORDER BY J0.APPNAME ASC LIMIT 9990,10; args: []
> I think there are two problems with the plan for this query: First, neither the ORDER BY nor the LIMIT clause are pushed down to DB2. However, if it is was pushed down, the plan should apply the ORDER & LIMIT before it tries to join to the notes table.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the teiid-issues
mailing list