You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by fh...@apache.org on 2017/06/27 11:57:11 UTC

flink git commit: [hotfix] [docs] Fix description of "following" for Table API over windows.

Repository: flink
Updated Branches:
  refs/heads/master 34d14652e -> e1f8882be


[hotfix] [docs] Fix description of "following" for Table API over windows.

This closes #4161.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/e1f8882b
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/e1f8882b
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/e1f8882b

Branch: refs/heads/master
Commit: e1f8882be3d7d1c4e5e5d53db8b719a46aa149d6
Parents: 34d1465
Author: sunjincheng121 <su...@gmail.com>
Authored: Thu Jun 22 09:59:42 2017 +0800
Committer: Fabian Hueske <fh...@apache.org>
Committed: Tue Jun 27 13:57:42 2017 +0200

----------------------------------------------------------------------
 docs/dev/table/tableApi.md | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/e1f8882b/docs/dev/table/tableApi.md
----------------------------------------------------------------------
diff --git a/docs/dev/table/tableApi.md b/docs/dev/table/tableApi.md
index 02f3432..99940dc 100644
--- a/docs/dev/table/tableApi.md
+++ b/docs/dev/table/tableApi.md
@@ -1336,9 +1336,14 @@ The `OverWindow` defines a range of rows over which aggregates are computed. `Ov
       <td>
         <p>Defines the window interval of rows that are included in the window and follow the current row. The interval must be specified in the same unit as the preceding interval (time or row-count).</p>
 
-        <p>At the moment, over windows with rows following the current row are not supported. All over windows must stop at the current row and only two values are supported for <code>following</code>, <code>CURRENT_RANGE</code> for a time interval and <code>CURRENT_ROW</code> for a row-count interval.</p>
+        <p>At the moment, over windows with rows following the current row are not supported. Instead you can specify one of two constants:</p>
 
-        <p>If the `following` clause is omitted, the window will end at the current row.</p>
+        <ul>
+          <li><code>CURRENT_ROW</code> sets the upper bound of the window to the current row.</li>
+          <li><code>CURRENT_RANGE</code> sets the upper bound of the window to sort key of the the current row, i.e., all rows with the same sort key as the current row are included in the window.</li>
+        </ul>
+
+        <p>If the <code>following</code> clause is omitted, the upper bound of a time interval window is defined as <code>CURRENT_RANGE</code> and the upper bound of a row-count interval window is defined as <code>CURRENT_ROW</code>.</p>
       </td>
     </tr>
     <tr>