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

Let LocalWindowAggregate be chained with upstream

    XMLWordPrintableJSON

Details

    Description

      When enabling two-phase aggregation (local-global) strategy for Window TVF, the physical plan is shown as follows:

      TableSourceScan -> Calc -> WatermarkAssigner -> Calc
      ||
      || [FORWARD]
      ||
      LocalWindowAggregate
      ||
      || [HASH]
      ||
      GlobalWindowAggregate
      ||
      ||
      ...

      We can let the `LocalWindowAggregate` node be chained with upstream operators in order to improve efficiency, just like the non-windowing counterpart `LocalGroupAggregate`.

       

      Attachments

        Issue Links

          Activity

            People

              lmagics Q Kang
              lmagics Q Kang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: