]
Work on TEIID-5250 started by Steven Hawkins.
---------------------------------------------
Duplicate result uid reported when using procedure isFunction=true
------------------------------------------------------------------
Key: TEIID-5250
URL:
https://issues.jboss.org/browse/TEIID-5250
Project: Teiid
Issue Type: Bug
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Priority: Critical
Fix For: 10.2
The logic that creates function metadata object in IndexMetadataRepository to replace
procedures marked as isFunction = true does not convey the designer object uuids, then
when values are assigned later that logic does not generate a sufficiently different uid.
The exception is reported as:
{code}
Caused by: java.lang.AssertionError: duplicate uid boolean result
at
org.teiid.query.metadata.CompositeMetadataStore.addOid(CompositeMetadataStore.java:199)
at
org.teiid.query.metadata.CompositeMetadataStore.assignOids(CompositeMetadataStore.java:192)
at
org.teiid.query.metadata.CompositeMetadataStore.getOids(CompositeMetadataStore.java:231)
at
org.teiid.query.metadata.CompositeMetadataStore.getOid(CompositeMetadataStore.java:217)
at
org.teiid.deployers.PgCatalogMetadataStore$FunctionMethods.getOid(PgCatalogMetadataStore.java:614)
{code}