[
https://issues.jboss.org/browse/TEIID-1878?page=com.atlassian.jira.plugin...
]
Andriy Rokhmanov commented on TEIID-1878:
-----------------------------------------
Here is the debug statement.
21 Dec 2011 14:10:55,025 CST DEBUG
[com.ca.chorus.server.teiid.translator.view.ViewExecutionFactory] (JBoss System
Threads(1)-9) !!!!! Schema:{PLATFORM_OPERATORS=Table name=platform_operators,
nameInSource=null, uuid=mmuuid:d2e8de71-3109-45dc-8249-40ff7b22afff,
TREE_DEFINITION_SCHEMA=Table name=tree_definition_schema, nameInSource=null,
uuid=mmuuid:f245a874-16aa-4fd6-8104-abaecd6ea4e5, PROPERTY_UNION=Table
name=property_union, nameInSource=null, uuid=mmuuid:27d0986f-9e7a-4a35-b85e-8cdc3b3976fa,
TREE_DEFINITION=Table name=tree_definition, nameInSource=null,
uuid=mmuuid:ea9962e7-8db8-47d7-918e-633fd4c78667, QUICKLINKS=Table name=quicklinks,
nameInSource=null, uuid=mmuuid:fece8133-98ed-4118-a546-cdceaa22b463, LOCALE=Table
name=locale, nameInSource=null, uuid=mmuuid:ad410889-a678-464a-ab9c-1f63dc5471a7,
CHORUS_ROLE=Table name=chorus_role, nameInSource=null,
uuid=mmuuid:090844f3-d1a5-480a-a2f2-af0bc9370e6b, PROPERTY_CHORUS_NON_MAT_VIEW=Table
name=property_CHORUS_NON_MAT_VIEW, nameInSource=null,
uuid=mmuuid:a774267a-cae0-4eb5-8451-023e36415c92, PROPERTY=Table name=property,
nameInSource=null, uuid=mmuuid:3f7e9078-b72a-4f78-ae58-05fcc60ab664}
Problem with accessing custom generated materialized views
----------------------------------------------------------
Key: TEIID-1878
URL:
https://issues.jboss.org/browse/TEIID-1878
Project: Teiid
Issue Type: Bug
Affects Versions: 7.6
Environment: java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
JBoss 5.1.0
Windows 7, 8GB RAM
Reporter: Andriy Rokhmanov
Assignee: Steven Hawkins
Attachments: server_bootstrap.log, server_select.log
We have a problem with custom-generated materialized view. The way we do it works fine
with Teiid 7.3 but fails when we try to migrate to 7.6.
Here is the SQL which gives the problem:
select * from chorus_metadata.property;
Remote org.teiid.api.exception.query.QueryPlannerException: Group does not exist:
chorus_metadata.property_CHORUS_NON_MAT_VIEW
Some additional info:
1. System tables:
select * from SYS.tables where Name like 'property%' and SchemaName =
'chorus_metadata';
VDBName SchemaName Name Type NameInSource IsPhysical
SupportsUpdates UID Cardinality Description
IsSystem IsMaterialized OID
------- --------------- ---------------------------- ---- ------------ ----------
--------------- ------------------------------------------- ----------- -----------
-------- -------------- ---
Chorus chorus_metadata property_union View NULL true false
mmuuid:319d6147-6145-4f56-bc2e-42326b19368c 0 NULL false
false 393
Chorus chorus_metadata property_CHORUS_NON_MAT_VIEW View NULL true false
mmuuid:bb25b63d-bded-4704-8638-e507197af6f1 0 NULL false
false 398
Chorus chorus_metadata property View NULL false false
mmuuid:9070f66d-df9c-4f37-bd4f-00020ceef492 0 NULL false true
399
select * from SYSADMIN.matviews;
VDBName SchemaName Name TargetSchemaName TargetName
Valid LoadState Updated Cardinality
------- --------------- -------------- ---------------- ------------------------------
----- ------------- ------- -----------
Chorus chorus_metadata property NULL #MAT_CHORUS_METADATA.PROPERTY
false NEEDS_LOADING NULL 0
Chorus pg_catalog pg_class NULL #MAT_PG_CATALOG.PG_CLASS
false NEEDS_LOADING NULL NULL
Chorus pg_catalog pg_attribute NULL #MAT_PG_CATALOG.PG_ATTRIBUTE
false NEEDS_LOADING NULL NULL
Chorus pg_catalog pg_index NULL #MAT_PG_CATALOG.PG_INDEX
false NEEDS_LOADING NULL NULL
Chorus pg_catalog pg_proc NULL #MAT_PG_CATALOG.PG_PROC
false NEEDS_LOADING NULL NULL
Chorus pg_catalog matpg_relatt NULL #MAT_PG_CATALOG.MATPG_RELATT
false NEEDS_LOADING NULL NULL
Chorus pg_catalog matpg_datatype NULL #MAT_PG_CATALOG.MATPG_DATATYPE
false NEEDS_LOADING NULL NULL
Note: looks like the chorus_metadata.propoerty needs loading, but attempt to load it
fails with the same error:
CALL SYSADMIN.refreshMatView(viewname=>'chorus_metadata.property',
invalidate=>'true');
Remote org.teiid.api.exception.query.QueryResolverException: Group does not exist:
chorus_metadata.property_CHORUS_NON_MAT_VIEW
2. The view chorus_metadata.property_CHORUS_NON_MAT_VIEW is actually exist and
available:
select * from chorus_metadata.property_CHORUS_NON_MAT_VIEW;
propertyName objectName subType propertyValue
objectInstance
----------------- ------------------------------- ----------- -----------------------
-----------------------
Sequence chorusdata.note Column 1
CREATED_ON
Sequence demodata.someSeq Column 1
...
3. How the chorus_metadata.property gets defined (sample code):
org.teiid.metadata.Table table =
org.teiid.metadata.MetadataFactory.addTable("property");
table.setMaterialized(true);
table.setVirtual(true);
table.setSelectTransformation(
"/*+ cache */ SELECT propertyName, objectName, subType, propertyValue,
objectInstance FROM chorus_metadata.property_CHORUS_NON_MAT_VIEW");
table.setTableType(Type.View);
Note: we tried today a patch for TEIID-1868, it did not help.
Let us know please if we can help with any additional information.
--
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