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

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

Commit 77758beba1b78372088bb6364192bcf9d9ff4ec6 in asterixdb's branch 
refs/heads/master from [~dlychagin-cb]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=77758be ]

[ASTERIXDB-2413][COMP] Error when statement parameter after group by

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

Details:
- Fix IllegalStateException in SqlppGroupByAggregationSugarVisitor

  when statement parameter is used after group by

Change-Id: I52c948396378e10bf9577109aa8626de52b94d60
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2761
Sonar-Qube: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Reviewed-by: Xikui Wang <[email protected]>


> IllegalStateException when statement parameter is used after group by
> ---------------------------------------------------------------------
>
>                 Key: ASTERIXDB-2413
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2413
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Minor
>
> The following query fails with IllegalStateException:
> // param args:json=[2]
> from [
>  \{ "x": false, "y": 1 },
>  \{ "x": false, "y": 2 },
>  \{ "x": true, "y": 3 },
>  \{ "x": true, "y": 4 },
>  \{ "x": true, "y": 5 }
>  ] t
>  group by t.x
>  having count(t.y) > $1
>  select value t.x
> ---> IllegalStateException: []:[?1]
>  



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

Reply via email to