Description
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 # join with a correlated expression in the join condition query II SELECT i, (SELECT s1.i FROM integers s1 INNER JOIN integers s2 ON 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 query II SELECT i, (SELECT i FROM integers WHERE i IS NOT NULL EXCEPT SELECT i FROM integers WHERE i<>i1.i) AS j FROM integers i1 WHERE i IS NOT NULL ORDER BY i; ---- 1 1 2 2 3 3
/subquery/scalar/test_complex_correlated_subquery.test[_ignore]
checked with mysql, all ok there.
Attachments
Issue Links
- is part of
-
IGNITE-12248 Apache Calcite based query execution engine
- Open