You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by di...@apache.org on 2020/10/22 02:39:50 UTC

[flink] branch release-1.11 updated: [hotfix][cep][docs] Fix the documentation of cep sql

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 ffe790f  [hotfix][cep][docs] Fix the documentation of cep sql
ffe790f is described below

commit ffe790f5e0171dbc3df7b4697fe1528fc07a8f21
Author: liuyongvs <li...@gmail.com>
AuthorDate: Mon Oct 19 19:47:38 2020 +0800

    [hotfix][cep][docs] Fix the documentation of cep sql
    
    This closes #13687.
---
 docs/dev/table/streaming/match_recognize.md    | 6 +++---
 docs/dev/table/streaming/match_recognize.zh.md | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/dev/table/streaming/match_recognize.md b/docs/dev/table/streaming/match_recognize.md
index 3fd20ec..3f0be08 100644
--- a/docs/dev/table/streaming/match_recognize.md
+++ b/docs/dev/table/streaming/match_recognize.md
@@ -598,7 +598,7 @@ conditions:
 {% highlight sql %}
 PATTERN (A B+)
 DEFINE
-  A AS A.price > 10,
+  A AS A.price >= 10,
   B AS B.price > A.price AND SUM(price) < 100 AND SUM(B.price) < 80
 {% endhighlight %}
 
@@ -745,7 +745,7 @@ conditions:
 {% highlight sql %}
 PATTERN (A B+)
 DEFINE
-  A AS A.price > 10,
+  A AS A.price >= 10,
   B AS (LAST(B.price, 1) IS NULL OR B.price > LAST(B.price, 1)) AND
        (LAST(B.price, 2) IS NULL OR B.price > 2 * LAST(B.price, 2))
 {% endhighlight %}
@@ -782,7 +782,7 @@ The table consists of the following columns:
       <td>-&gt; B</td>
       <td>null</td>
       <td>null</td>
-      <td>Notice that <code>LAST(A.price, 1)</code> is null because there is still nothing mapped
+      <td>Notice that <code>LAST(B.price, 1)</code> is null because there is still nothing mapped
           to <code>B</code>.</td>
     </tr>
     <tr>
diff --git a/docs/dev/table/streaming/match_recognize.zh.md b/docs/dev/table/streaming/match_recognize.zh.md
index 24b62d0..c5e53c3 100644
--- a/docs/dev/table/streaming/match_recognize.zh.md
+++ b/docs/dev/table/streaming/match_recognize.zh.md
@@ -519,7 +519,7 @@ _引用模式变量_ 允许引用一组映射到 `DEFINE` 或 `MEASURES` 子句
 {% highlight sql %}
 PATTERN (A B+)
 DEFINE
-  A AS A.price > 10,
+  A AS A.price >= 10,
   B AS B.price > A.price AND SUM(price) < 100 AND SUM(B.price) < 80
 {% endhighlight %}
 
@@ -657,7 +657,7 @@ FIRST(variable.field, n)
 {% highlight sql %}
 PATTERN (A B+)
 DEFINE
-  A AS A.price > 10,
+  A AS A.price >= 10,
   B AS (LAST(B.price, 1) IS NULL OR B.price > LAST(B.price, 1)) AND
        (LAST(B.price, 2) IS NULL OR B.price > 2 * LAST(B.price, 2))
 {% endhighlight %}
@@ -692,7 +692,7 @@ DEFINE
       <td>-&gt; B</td>
       <td>null</td>
       <td>null</td>
-      <td>注意 <code>LAST(A.price, 1)</code> 为空,因为仍然没有映射到 <code>B</code>。</td>
+      <td>注意 <code>LAST(B.price, 1)</code> 为空,因为仍然没有映射到 <code>B</code>。</td>
     </tr>
     <tr>
       <td>20</td>