[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ian Maxon resolved ASTERIXDB-2947.
----------------------------------
    Resolution: Fixed

> HYR0126: Illegal state. During query optimization
> -------------------------------------------------
>
>                 Key: ASTERIXDB-2947
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2947
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>    Affects Versions: 0.9.6
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Major
>             Fix For: 0.9.8
>
>
> The following query fails optimizer sanity check with 
> {noformat}
> java.lang.Exception: HYR0126: Illegal state. Fired rule 
> org.apache.asterix.optimizer.rules.subplan.InlineSubplanInputForNestedTupleSourceRule
>  produced illegal undefined used variables [$$93] in left outer join (eq($$x, 
> $$93)) -- |UNPARTITIONED|
> {noformat}
> Query:
> {noformat}
> create  dataset t1(id uuid not unknown) open type primary key id 
> autogenerated;
> SELECT x, ARRAY_SORT(ARRAY_AGG({y})) yy
> FROM t1
> GROUP BY x
> HAVING SOME r IN ARRAY_AGG({y}) SATISFIES r.y IN ["B", "H"]
> ORDER BY x;
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to