Dmitry Lychagin created ASTERIXDB-3006:
------------------------------------------
Summary: InlineSubplanInputForNestedTupleSourceRule produces
invalid query plan
Key: ASTERIXDB-3006
URL: https://issues.apache.org/jira/browse/ASTERIXDB-3006
Project: Apache AsterixDB
Issue Type: Bug
Components: COMP - Compiler
Affects Versions: 0.9.7
Reporter: Dmitry Lychagin
Assignee: Dmitry Lychagin
Fix For: 0.9.8
The following query fails during optimizer sanity check.
{noformat}
select *
from ds1
where exists(
select 1
from ds1.a[*].b b
join ds2 on ds2.x[0].y = b
)
{noformat}
Error:
{noformat}
HYR0126: Illegal state. Fired rule
org.apache.asterix.optimizer.rules.subplan.InlineSubplanInputForNestedTupleSourceRule
produced illegal undefined used variables [$$ds1] in assign [$$46] <- [{"ds1":
$$ds1}]
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)