[teiid-issues] [JBoss JIRA] (TEIID-1326) API request: rewrite query/command before it reaches the teiid planner

Steven Hawkins (Resolved) (JIRA) jira-events at lists.jboss.org
Mon Jan 9 14:40:10 EST 2012


     [ https://issues.jboss.org/browse/TEIID-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins resolved TEIID-1326.
-----------------------------------

    Resolution: Done


re-resolving.  the docs do mention mention MetadataRepository, and it covered in the teiid-jboss-beans.xml.  With AS7, we'll need to update the docs more extensively as we won't have the inline beans.xml documentation.
                
> API request:  rewrite query/command before it reaches the teiid planner
> -----------------------------------------------------------------------
>
>                 Key: TEIID-1326
>                 URL: https://issues.jboss.org/browse/TEIID-1326
>             Project: Teiid
>          Issue Type: Feature Request
>          Components: Query Engine
>    Affects Versions: 7.1
>            Reporter: Mark Addleman
>            Assignee: Steven Hawkins
>              Labels: 7.4CR1
>             Fix For: 7.4
>
>
> I'd like an API to inspect and rewrite a user query/command before it reaches the Teiid planner. The use case is to rewrite the query/command to implement view-like capabilities.  For example:
> SELECT a,b,c FROM table1 AS t WHERE t.a='xyz'  would be rewritten as:
> SELECT a,b,c FROM (SELECT a,b,c FROM table2 UNION SELECT a,b,c FROM table3) AS t
> I imagine this API would be similar to the translator API:  it would receive a data structure representing the query/command and use a visitor to rewrite the query.  As a convenience, it would be nice to have something similar to the SQLConversionVisitor.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the teiid-issues mailing list