Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14361

Decorrelate subQuery fail when multi correlate in project

    XMLWordPrintableJSON

Details

    Description

      Blink planner run SQL:

      SELECT (SELECT SUM(l.c) FROM l WHERE l.a = r.a and l.b = r.b) from r)
      

      Will throw exception: unexpected correlate variable $cor

      But:

      SELECT (SELECT SUM(l.c) FROM l WHERE l.a = r.a) from r)

      Single correlate in project can work.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            lzljs3620320 Jingsong Lee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: