[ https://issues.apache.org/jira/browse/IGNITE-15609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Plekhanov updated IGNITE-15609: --------------------------------------- Labels: calcite (was: calcite calcite2-required) > Calcite. Error WHERE clause must be a condition. > ------------------------------------------------ > > Key: IGNITE-15609 > URL: https://issues.apache.org/jira/browse/IGNITE-15609 > Project: Ignite > Issue Type: Bug > Components: sql > Reporter: Evgeny Stanilovsky > Assignee: Evgeny Stanilovsky > Priority: Minor > Labels: calcite > Fix For: 2.15, 3.0.0-beta2 > > Time Spent: 0.5h > Remaining Estimate: 0h > > {noformat} > statement ok > CREATE TABLE item(i_manufact INTEGER) > query I > SELECT * FROM item i1 WHERE (SELECT count(*) AS item_cnt FROM item WHERE > (i_manufact = i1.i_manufact AND i_manufact=3) OR (i_manufact = i1.i_manufact > AND i_manufact=3)) ORDER BY 1 LIMIT 100; > ---- > {noformat} > {noformat} > org.apache.calcite.runtime.CalciteContextException: From line 1, column 30 to > line 1, column 167: WHERE clause must be a condition > 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) > at > org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(SqlValidatorImpl.java:5271) > at > org.apache.calcite.sql.validate.SqlValidatorImpl.validateWhereOrOn(SqlValidatorImpl.java:4350) > at > org.apache.calcite.sql.validate.SqlValidatorImpl.validateWhereClause(SqlValidatorImpl.java:4334) > {noformat} > {noformat} > /subquery/scalar/test_tpcds_correlated_subquery.test[_ignore] > {noformat} > tested with mysql, all ok there. -- This message was sent by Atlassian Jira (v8.20.10#820010)