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

Dmitry Lychagin updated ASTERIXDB-2413:
---------------------------------------
    Description: 
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]

 

  was:
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]

 


> IllegalStateException when statement parameter is used in SQL aggregate 
> function
> --------------------------------------------------------------------------------
>
>                 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