-
Bug
-
Resolution: Done
-
Major
-
7.6
-
None
Exception: org.teiid.core.TeiidException happens after executing select statement #1, but works fine on #2 and #3.
The execution plan for problematic statement attached.
1. Problematic SQL Statement:
SELECT T.ROLE_NAME as ROLE_NAME, T.SCHEMA_NAME as SCHEMA_NAME, T.INSTALL_STATUS as INSTALL_STATUS
FROM (
SELECT ROLE_NAME, 'demodata_chorus_metadata' as SCHEMA_NAME, INSTALL_STATUS from demodata_chorus_metadata.chorus_role
UNION
SELECT ROLE_NAME, 'security_cia_chorus_metadata' as SCHEMA_NAME, INSTALL_STATUS from security_cia_chorus_metadata.chorus_role
UNION
SELECT ROLE_NAME, 'vantage_chorus_metadata' as SCHEMA_NAME, INSTALL_STATUS from vantage_chorus_metadata.chorus_role
) AS T, chorus_license.RL_LICENSE as L
WHERE T.ROLE_NAME = L.ROLE_NAME
AND T.install_status = true;
2. This SQL statement works fine (the difference between #1 and #2 is in final 'AND...' clause):
SELECT T.ROLE_NAME as ROLE_NAME, T.SCHEMA_NAME as SCHEMA_NAME, T.INSTALL_STATUS as INSTALL_STATUS
FROM (
SELECT ROLE_NAME, 'demodata_chorus_metadata' as SCHEMA_NAME, INSTALL_STATUS from demodata_chorus_metadata.chorus_role
UNION
SELECT ROLE_NAME, 'security_cia_chorus_metadata' as SCHEMA_NAME, INSTALL_STATUS from security_cia_chorus_metadata.chorus_role
UNION
SELECT ROLE_NAME, 'vantage_chorus_metadata' as SCHEMA_NAME, INSTALL_STATUS from vantage_chorus_metadata.chorus_role
) AS T, chorus_license.RL_LICENSE as L
WHERE T.ROLE_NAME = L.ROLE_NAME;
3. This SQL statement also works fine (the difference between #1 and #3 is only two UNIONs included out of three, does not matter which ones)
SELECT T.ROLE_NAME as ROLE_NAME, T.SCHEMA_NAME as SCHEMA_NAME, T.INSTALL_STATUS as INSTALL_STATUS
FROM (
SELECT ROLE_NAME, 'security_cia_chorus_metadata' as SCHEMA_NAME, INSTALL_STATUS from security_cia_chorus_metadata.chorus_role
UNION
SELECT ROLE_NAME, 'vantage_chorus_metadata' as SCHEMA_NAME, INSTALL_STATUS from vantage_chorus_metadata.chorus_role
) AS T, chorus_license.RL_LICENSE as L
WHERE T.ROLE_NAME = L.ROLE_NAME
AND T.install_status = true;
- relates to
-
TEIID-2041 Regression in RuleCleanCriteria
- Closed