]
Steven Hawkins resolved TEIID-5556.
-----------------------------------
Resolution: Done
Updated the resolving logic to reuse the id if already resolved.
Re-resolving a query with common tables breaks projection
minimization
----------------------------------------------------------------------
Key: TEIID-5556
URL:
https://issues.jboss.org/browse/TEIID-5556
Project: Teiid
Issue Type: Bug
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Priority: Major
Fix For: 12.0
While I don't see a case where this would happen in practice we should guard against
it.
The issue is that we create a new temp group for the with clause, but then reuse the old
metadata ids where referenced. The projection logic works off of equality, so it needs
the references to be updated or the original to stay in use.