[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16790024#comment-16790024
 ] 

ASF subversion and git services commented on ASTERIXDB-2528:
------------------------------------------------------------

Commit 4b0ea93fd215b428abef872816f414b5ad1c2ec9 in asterixdb's branch 
refs/heads/master from Dmitry Lychagin
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=4b0ea93 ]

[ASTERIXDB-2528][COMP] Fix illegal state exception in the compiler

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
- Fix illegal state exception raised by the compiler when
  a variable used by SQL aggregate function is not mapped
  by GROUP AS clause

Change-Id: I12bab27ad8e25d0bd55c900e559541eff2141fb9
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3257
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Ali Alsuliman <[email protected]>


> Illegal state exception in the compiler
> ---------------------------------------
>
>                 Key: ASTERIXDB-2528
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2528
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Minor
>
> java.lang.Exception: IllegalStateException: []:[$x]
> thrown for the following query:
> {noformat}
> from [{"f2":1, "f1":"foo"}] as t
> let x = [9]
> group by t.f2
> group as g (t as tt)
> select t.f2, g, sum(x);
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to