[
https://issues.apache.org/jira/browse/ASTERIXDB-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17398685#comment-17398685
]
ASF subversion and git services commented on ASTERIXDB-2947:
------------------------------------------------------------
Commit c88453531e7b7d88fc0109ec1b7260297e6da41e in asterixdb's branch
refs/heads/master from Dmitry Lychagin
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=c884535 ]
[ASTERIXDB-2947][COMP] Fix internal compiler error
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
- Fixed optimizer sanity check failure caused by
InlineSubplanInputForNestedTupleSourceRule
Change-Id: If8e50a0909481e98e25d9c12ebe1a8e8f1464c9e
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12785
Integration-Tests: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Reviewed-by: Dmitry Lychagin <[email protected]>
Reviewed-by: Ali Alsuliman <[email protected]>
> 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)