Dmitry Lychagin created ASTERIXDB-2411:

             Summary: Error when SQL aggregate function is used in BETWEEN 
                 Key: ASTERIXDB-2411
             Project: Apache AsterixDB
          Issue Type: Bug
            Reporter: Dmitry Lychagin
            Assignee: Dmitry Lychagin

Error: ASX1079: sql-count is a SQL-92 aggregate function. The SQL++ core 
aggregate function array_sql-count could potentially express the intent


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},
] 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

Reply via email to