perform projection minimization on with commands
------------------------------------------------
Key: TEIID-3009
URL:
https://issues.jboss.org/browse/TEIID-3009
Project: Teiid
Issue Type: Sub-task
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.9
We currently treat the with clause as the creation of a temporary table at a query scope,
but we can do projection minimization based upon the referenced columns. This is somewhat
tricky with the current planning logic as we must first plan the with clause to determine
if it's eligible for pushdown to then plan the main command.