You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Evgeny Stanilovsky (Jira)" <ji...@apache.org> on 2021/09/24 10:57:00 UTC

[jira] [Created] (IGNITE-15592) Calcite. Unexpected result with implicit join with correlated expression in filter.

Evgeny Stanilovsky created IGNITE-15592:
-------------------------------------------

             Summary: Calcite. Unexpected result with implicit join with correlated expression in filter.
                 Key: IGNITE-15592
                 URL: https://issues.apache.org/jira/browse/IGNITE-15592
             Project: Ignite
          Issue Type: Bug
          Components: sql
            Reporter: Evgeny Stanilovsky


{noformat}
statement ok
CREATE TABLE integers(i INTEGER)

statement ok
INSERT INTO integers VALUES (1), (2), (3), (NULL)

# implicit join with correlated expression in filter
query II
SELECT i, (SELECT s1.i FROM integers s1, integers s2 WHERE s1.i=s2.i AND s1.i=4-i1.i) AS j FROM integers i1 ORDER BY i NULLS FIRST;
----
NULL	NULL
1	3
2	2
3	1
{noformat}


{noformat}
/subquery/scalar/test_complex_correlated_subquery.test[_ignore]
{noformat}

checked with mysql, all ok there.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)