Dmitry Lychagin created ASTERIXDB-2411: ------------------------------------------
Summary: 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 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)