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

Introduce Rank and Deduplicate operators for blink streaming runtime

    XMLWordPrintableJSON

Details

    Description

      Support translation from Rank/Deduplicate to StreamTransformation, So following sql can be run:
      1.
      SELECT a, b, c
      FROM (
      SELECT *,
      ROW_NUMBER() OVER (PARTITION BY b ORDER BY proc DESC) as rowNum
      FROM T
      )
      WHERE rowNum = 1
      2.
      SELECT *
      FROM (
      SELECT category, shopId, num,
      ROW_NUMBER() OVER (PARTITION BY category ORDER BY num DESC) as rank_num
      FROM T)
      WHERE rank_num <= 2

       

      Attachments

        Issue Links

          Activity

            People

              jingzhang Jing Zhang
              jingzhang Jing Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m