]
Steven Hawkins updated TEIID-4273:
----------------------------------
Fix Version/s: 8.7.7.6_2
With clause used in evaluatable subquery in a fully pushed user query
is seen as missing temp table
---------------------------------------------------------------------------------------------------
Key: TEIID-4273
URL:
https://issues.jboss.org/browse/TEIID-4273
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 8.7
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 9.1, 8.7.7.6_2, 9.0.1
A query such as:
WITH qry_0 as /\*+ no_inline */ (SELECT e2 AS a1, e1 as str FROM pm1.g1 AS t), qry_1 as
/\*+ no_inline */ (SELECT 'b' AS a1) select (select a1 || 'a' from qry_1)
as x, a1 from qry_0
where the projected scalar subquery cannot be pushed down, but the rest of the query can
will result in the with plan for qry_1 not being associated with the parent RelationalPlan
and results in an exception that the temporary table cannot be found. This does not occur
if the clause is inlined (9.0+).