Evgeny Stanilovsky created IGNITE-15587: -------------------------------------------
Summary: Calcite. Aggregate expression is illegal in WHERE clause. Key: IGNITE-15587 URL: https://issues.apache.org/jira/browse/IGNITE-15587 Project: Ignite Issue Type: Improvement Components: sql Reporter: Evgeny Stanilovsky {noformat} statement ok CREATE TABLE integers(i INTEGER) statement ok INSERT INTO integers VALUES (1), (2), (3), (NULL) # correlated EXISTS with aggregations query T SELECT EXISTS(SELECT i FROM integers WHERE i>MIN(i1.i)) FROM integers i1; ---- true {noformat} {noformat} org.apache.calcite.runtime.CalciteContextException: From line 1, column 46 to line 1, column 54: Aggregate expression is illegal in WHERE clause at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:506) at org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:917) at org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:902) {noformat} {noformat} /subquery/exists/test_correlated_exists.test[_ignore] {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)