This is an automated email from the ASF dual-hosted git repository.

dianfu pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.11 by this push:
     new 6e67b50  [FLINK-19755][cep][docs] Fix CEP documentation error of the 
example in 'After Match Strategy' section
6e67b50 is described below

commit 6e67b50eaba6b4c23181566bc2fb96130464f876
Author: liuyongvs <[email protected]>
AuthorDate: Fri Oct 23 10:33:18 2020 +0800

    [FLINK-19755][cep][docs] Fix CEP documentation error of the example in 
'After Match Strategy' section
    
    This closes #13754.
---
 docs/dev/table/streaming/match_recognize.md    | 32 ++++++++++++--------------
 docs/dev/table/streaming/match_recognize.zh.md | 32 ++++++++++++--------------
 2 files changed, 30 insertions(+), 34 deletions(-)

diff --git a/docs/dev/table/streaming/match_recognize.md 
b/docs/dev/table/streaming/match_recognize.md
index 3f0be08..8c99572 100644
--- a/docs/dev/table/streaming/match_recognize.md
+++ b/docs/dev/table/streaming/match_recognize.md
@@ -921,8 +921,9 @@ For the following input rows:
  XYZ      2     9       2018-09-17 10:00:02
  XYZ      1     10      2018-09-17 10:00:03
  XYZ      2     5       2018-09-17 10:00:04
- XYZ      2     17      2018-09-17 10:00:05
- XYZ      2     14      2018-09-17 10:00:06
+ XYZ      2     10      2018-09-17 10:00:05
+ XYZ      2     7       2018-09-17 10:00:06
+ XYZ      2     14      2018-09-17 10:00:07
 {% endhighlight %}
 
 We evaluate the following query with different strategies:
@@ -956,12 +957,12 @@ The query will produce different results based on which 
`AFTER MATCH` strategy w
  symbol   sumPrice        startTime              endTime
 ======== ========== ===================== =====================
  XYZ      26         2018-09-17 10:00:01   2018-09-17 10:00:04
- XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:06
+ XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:07
 {% endhighlight %}
 
 The first result matched against the rows #1, #2, #3, #4.
 
-The second result matched against the rows #5, #6.
+The second result matched against the rows #5, #6, #7.
 
 ##### `AFTER MATCH SKIP TO NEXT ROW`
 
@@ -970,9 +971,9 @@ The second result matched against the rows #5, #6.
 ======== ========== ===================== =====================
  XYZ      26         2018-09-17 10:00:01   2018-09-17 10:00:04
  XYZ      24         2018-09-17 10:00:02   2018-09-17 10:00:05
- XYZ      15         2018-09-17 10:00:03   2018-09-17 10:00:05
- XYZ      22         2018-09-17 10:00:04   2018-09-17 10:00:06
- XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:06
+ XYZ      25         2018-09-17 10:00:03   2018-09-17 10:00:06
+ XYZ      22         2018-09-17 10:00:04   2018-09-17 10:00:07
+ XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:07
 {% endhighlight %}
 
 Again, the first result matched against the rows #1, #2, #3, #4.
@@ -980,11 +981,11 @@ Again, the first result matched against the rows #1, #2, 
#3, #4.
 Compared to the previous strategy, the next match includes row #2 again for 
the next matching.
 Therefore, the second result matched against the rows #2, #3, #4, #5.
 
-The third result matched against the rows #3, #4, #5.
+The third result matched against the rows #3, #4, #5, #6.
 
-The forth result matched against the rows #4, #5, #6.
+The forth result matched against the rows #4, #5, #6, #7.
 
-The last result matched against the rows #5, #6.
+The last result matched against the rows #5, #6, #7.
 
 ##### `AFTER MATCH SKIP TO LAST A`
 
@@ -992,19 +993,16 @@ The last result matched against the rows #5, #6.
  symbol   sumPrice        startTime              endTime
 ======== ========== ===================== =====================
  XYZ      26         2018-09-17 10:00:01   2018-09-17 10:00:04
- XYZ      15         2018-09-17 10:00:03   2018-09-17 10:00:05
- XYZ      22         2018-09-17 10:00:04   2018-09-17 10:00:06
- XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:06
+ XYZ      25         2018-09-17 10:00:03   2018-09-17 10:00:06
+ XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:07
 {% endhighlight %}
 
 Again, the first result matched against the rows #1, #2, #3, #4.
 
 Compared to the previous strategy, the next match includes only row #3 (mapped 
to `A`) again for
-the next matching. Therefore, the second result matched against the rows #3, 
#4, #5.
+the next matching. Therefore, the second result matched against the rows #3, 
#4, #5, #6.
 
-The third result matched against the rows #4, #5, #6.
-
-The last result matched against the rows #5, #6.
+The last result matched against the rows #5, #6, #7.
 
 ##### `AFTER MATCH SKIP TO FIRST A`
 
diff --git a/docs/dev/table/streaming/match_recognize.zh.md 
b/docs/dev/table/streaming/match_recognize.zh.md
index c5e53c3..ab297a9 100644
--- a/docs/dev/table/streaming/match_recognize.zh.md
+++ b/docs/dev/table/streaming/match_recognize.zh.md
@@ -821,8 +821,9 @@ DEFINE
  XYZ      2     9       2018-09-17 10:00:02
  XYZ      1     10      2018-09-17 10:00:03
  XYZ      2     5       2018-09-17 10:00:04
- XYZ      2     17      2018-09-17 10:00:05
- XYZ      2     14      2018-09-17 10:00:06
+ XYZ      2     10      2018-09-17 10:00:05
+ XYZ      2     7       2018-09-17 10:00:06
+ XYZ      2     14      2018-09-17 10:00:07
 {% endhighlight %}
 
 我们使用不同的策略评估以下查询:
@@ -855,12 +856,12 @@ FROM Ticker
  symbol   sumPrice        startTime              endTime
 ======== ========== ===================== =====================
  XYZ      26         2018-09-17 10:00:01   2018-09-17 10:00:04
- XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:06
+ XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:07
 {% endhighlight %}
 
 第一个结果与 #1,#2,#3,#4 行匹配。
 
-第二个结果与 #5,#6 行匹配。
+第二个结果与 #5,#6, #7 行匹配。
 
 ##### `AFTER MATCH SKIP TO NEXT ROW`
 
@@ -869,20 +870,20 @@ FROM Ticker
 ======== ========== ===================== =====================
  XYZ      26         2018-09-17 10:00:01   2018-09-17 10:00:04
  XYZ      24         2018-09-17 10:00:02   2018-09-17 10:00:05
- XYZ      15         2018-09-17 10:00:03   2018-09-17 10:00:05
- XYZ      22         2018-09-17 10:00:04   2018-09-17 10:00:06
- XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:06
+ XYZ      25         2018-09-17 10:00:03   2018-09-17 10:00:06
+ XYZ      22         2018-09-17 10:00:04   2018-09-17 10:00:07
+ XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:07
 {% endhighlight %}
 
 同样,第一个结果与 #1,#2,#3,#4 行匹配。
 
 与上一个策略相比,下一个匹配再次包含 #2 行匹配。因此,第二个结果与 #2,#3,#4,#5 行匹配。
 
-第三个结果与 #3,#4,#5 行匹配。
+第三个结果与 #3,#4,#5, #6 行匹配。
 
-第四个结果与 #4,#5,#6 行匹配。
+第四个结果与 #4,#5,#6, #7 行匹配。
 
-最后一个结果与 #5,#6 行匹配。
+最后一个结果与 #5,#6, #7 行匹配。
 
 ##### `AFTER MATCH SKIP TO LAST A`
 
@@ -890,18 +891,15 @@ FROM Ticker
  symbol   sumPrice        startTime              endTime
 ======== ========== ===================== =====================
  XYZ      26         2018-09-17 10:00:01   2018-09-17 10:00:04
- XYZ      15         2018-09-17 10:00:03   2018-09-17 10:00:05
- XYZ      22         2018-09-17 10:00:04   2018-09-17 10:00:06
- XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:06
+ XYZ      25         2018-09-17 10:00:03   2018-09-17 10:00:06
+ XYZ      17         2018-09-17 10:00:05   2018-09-17 10:00:07
 {% endhighlight %}
 
 同样,第一个结果与 #1,#2,#3,#4 行匹配。
 
-与前一个策略相比,下一个匹配只包含 #3 行(对应 `A`)用于下一个匹配。因此,第二个结果与 #3,#4,#5 行匹配。
+与前一个策略相比,下一个匹配只包含 #3 行(对应 `A`)用于下一个匹配。因此,第二个结果与 #3,#4,#5, #6 行匹配。
 
-第三个结果与 #4,#5,#6 行匹配。
-
-最后一个结果与 #5,#6 行匹配。
+最后一个结果与 #5,#6, #7 行匹配。
 
 ##### `AFTER MATCH SKIP TO FIRST A`
 

Reply via email to