You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Dmitry Lychagin (JIRA)" <ji...@apache.org> on 2018/07/13 19:29:00 UTC

[jira] [Resolved] (ASTERIXDB-2411) Error when SQL aggregate function is used in BETWEEN operator

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

Dmitry Lychagin resolved ASTERIXDB-2411.
----------------------------------------
    Resolution: Fixed

> Error when SQL aggregate function is used in BETWEEN operator
> -------------------------------------------------------------
>
>                 Key: ASTERIXDB-2411
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2411
>             Project: Apache AsterixDB
>          Issue Type: Bug
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Minor
>
> Error: ASX1079: sql-count is a SQL-92 aggregate function. The SQL++ core aggregate function array_sql-count could potentially express the intent
> Reproducer:
> create type test.TestType as \{ c_id: string };
> create dataset t1(TestType) primary key c_id;
> insert into t1 select value t from [
>  \{"c_id":"01","c_b":true, "c_d":900,"c_i":999999},
>  \{"c_id":"02","c_b":true, "c_d":800,"c_i":888888},
>  \{"c_id":"03","c_b":true, "c_d":700,"c_i":777777},
>  \{"c_id":"05","c_b":false,"c_d":111,"c_i":111111}
> ] t
> select value c_b from t1
> group by c_b
> having count(c_d) between 2 and 4
>  
>  
>  
>  



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