Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-97

Planner fails with correlated EXISTS sub-query

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Query with correlated EXISTS sub-query fails.

      ```sql
      select * from emps where exists (
      select * from depts where emps.deptno = depts.deptno)

      org.eigenbase.relopt.RelOptPlanner$CannotPlanException: Node [rel(#32 | FLINK-32):Subset([#8|https://github.com/JulianHyde/optiq/issues/8] | FLINK-8).ENUMERABLE.[]] could not be implemented; planner state:
      ```

      I believe that decorrelation is enabled, but no rule is enabled that can handle the resulting CorrelatorRel.

      ---------------- Imported from GitHub ----------------
      Url: https://github.com/julianhyde/optiq/issues/97
      Created by: julianhyde
      Labels:
      Created at: Tue Dec 03 01:44:52 CET 2013
      State: closed

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            github-import GitHub Import
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development