Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15580

Calcite. Correlated ANY/ALL subqueries fails.

    XMLWordPrintableJSON

Details

    Description

      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
      

      returns erroneous result.

      /subquery/any_all/test_correlated_any_all.test{_ignore}
      

      Attachments

        Issue Links

          Activity

            People

              jooger Iurii Gerzhedovich
              zstan Evgeny Stanilovsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m