[teiid-issues] [JBoss JIRA] (TEIID-4565) Add objects table to system schema

Tom Johnston (JIRA) issues at jboss.org
Mon Nov 14 13:01:00 EST 2016


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

Tom Johnston commented on TEIID-4565:
-------------------------------------

Sorry for the delay...

The idea is similar to the dba/all_objects table in Oracle (ex.  https://docs.oracle.com/cd/E18283_01/server.112/e17110/statviews_1155.htm#i1583352)
 The reason for this is that I can peruse this object when a search is triggered and know not only a match but also the object type.  Note that the Oracle example does not include descriptions/comments but I would like for to but am open to discuss that.  Additionally, there is object id found in the Oracle example I would presume this is the uid or oid moving forward, correct?


> Add objects table to system schema
> ----------------------------------
>
>                 Key: TEIID-4565
>                 URL: https://issues.jboss.org/browse/TEIID-4565
>             Project: Teiid
>          Issue Type: Feature Request
>            Reporter: Tom Johnston
>            Assignee: Steven Hawkins
>
> The addition of a objects table  would make it simpler to join to when extensions are implemented.
> An example might be something similar to this query:
> select sysObjects.*
> from (
> select t.schemaName as Parent,t.name, t.uid ,'Table' as ObjectType
> from sys.tables t
> where schemaName not in (select distinct(schemaName) from "SYS"."Tables" where isSystem = true)
> UNION
> select c.tableName as Parent,c.name, c.uid,'Column' as ObjectType
> from sys.columns c
> where schemaName not in (select distinct(schemaName) from "SYS"."Tables" where isSystem = true)
> UNION
> select null as Parent,e.Value as Name,e.uid,'Property' as ObjectType
> from sys.properties as e) as SysObjects



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


More information about the teiid-issues mailing list