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

support Local-Global Aggregation with LastValue Funciton

    XMLWordPrintableJSON

Details

    Description

      The optimization of Local-Global Aggregation is invalid when the last_value aggregation function exists,  such as 

      select k, sum(v) as v, last_value(v) as last_v
       from a
       group by k
      
      

      right now  the ExecutionPlan is: 

      but with the  optimization of Local-Global Aggregation enabled, the ExecutionPlan is supported to be:

       

       

      Attachments

        1. image-2020-06-28-16-15-38-173.png
          156 kB
          wangpeibin
        2. image-2020-06-28-16-12-39-156.png
          87 kB
          wangpeibin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wangpeibin wangpeibin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: