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 2023/05/03 07:40:00 UTC

[jira] [Commented] (IGNITE-15580) Calcite. Correlated ANY/ALL subqueries fails.

    [ https://issues.apache.org/jira/browse/IGNITE-15580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718814#comment-17718814 ] 

Evgeny Stanilovsky commented on IGNITE-15580:
---------------------------------------------

[~jooger]  thanks for your effort, merged into main.

> Calcite. Correlated ANY/ALL subqueries fails.
> ---------------------------------------------
>
>                 Key: IGNITE-15580
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15580
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Evgeny Stanilovsky
>            Assignee: Yury Gerzhedovich
>            Priority: Major
>              Labels: calcite, calcite2-required, calcite3-required, ignite-3
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {noformat}
> statement ok
> CREATE TABLE integers(i INTEGER)
> statement ok
> INSERT INTO integers VALUES (1), (2), (3), (NULL)
> # correlated ANY/ALL
> query T
> SELECT i=ANY(SELECT i FROM integers WHERE i=i1.i) FROM integers i1 ORDER BY i;
> ----
> 0
> 1
> 1
> 1
> {noformat}
> returns erroneous result.
> {noformat}
> /subquery/any_all/test_correlated_any_all.test{_ignore}
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)