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

Aggregate Join Push-down on a Single Side

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core
    • None

    Description

      While investigating https://issues.apache.org/jira/browse/CALCITE-2195, it's apparent that aggregation can be pushed on on a single side (either side), and leave the other side non-aggregated, regardless of whether grouping columns are unique on the other side. My analysis – http://zhong-j-yu.github.io/aggregate-join-push-down.pdf .

      This may be useful when the metadata is insufficient; in any case, we may try to provide all 3 possible transformations (aggregate on left only; right only; both sides) to the cost based optimizer, so that the cheapest one can be chosen based on stats. 

      Does this make any sense, anybody? If it sounds good, I'll implement it and offer a PR. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            zhong.j.yu Zhong Yu
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: