Apache Drill
  1. Apache Drill
  2. DRILL-636

Push Limit operator past project, left outer join, union all operator and down into scan operator

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Labels:
      None

      Description

      When we have a limit operator on top of project, left outer join, union all operator, we should push the limit operator, until the limit is put into scan operator. Doing so, it will reduce the amount of data scanned by the scan operator.

      For instance,

      Select COL1, COL2 FROM T1 LIMIT 5;

      LIMIT (5)
      \
      PROJECT (COL1, COL2)
      \
      SCAN (T1).

      We need push limit past project, down into scan.

      Similar applies to left outer join, or union all.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Aman Sinha
            Reporter:
            Jinfeng Ni
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development