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

Add 'as' method for OverWindowWithOrderBy in Java API

    XMLWordPrintableJSON

Details

    • Change the over window preceding clause from required to optional.

    Description

      The preceding clause of OVER Window in the traditional database is optional. The default is UNBOUNDED. So we can add the "as" method to OverWindowWithOrderBy. This way OVERWindow is written more easily. e.g.:

      .window(Over partitionBy 'c orderBy 'proctime preceding UNBOUNDED_ROW as 'w)

      Can be simplified as follows:

      .window(Over partitionBy 'c orderBy 'proctime as 'w)

      What do you think?

       

      Attachments

        Issue Links

          Activity

            People

              hequn8128 Hequn Cheng
              sunjincheng121 sunjincheng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: