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

Planner fails with correlated EXISTS sub-query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: