Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5682

Raise aggregation to allow for join pushdown

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Deferred
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Query Engine
    • Labels:
      None

      Description

      In some plans, for example those created by odata expand see TEIID-5680, the resulting query has the form of:

      select tbl1-cols from tbl1 left outer join (select cols, aggregates ... from tbl2 group by cols) on (some non-aggregate predicate)

      If the aggregates or other intervening constructs are not able to be pushed the result will be a federated join.

      In most instances (where the tbl1 columns are sortable) it's possible to change this to:

      select tbl1-cols aggregates from tbl1 left outer join tbl1 on (...) group by tbl1-cols, cols

      which can allow the pushdown of the join to proceed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shawkins Steven Hawkins
              Reporter:
              shawkins Steven Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: