You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by hx...@apache.org on 2022/08/09 03:37:22 UTC

[flink] branch release-1.15 updated: [FLINK-28880][docs][cep] Fix wrong result of strict contiguity of looping patterns

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

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


The following commit(s) were added to refs/heads/release-1.15 by this push:
     new 6eced8aa39c [FLINK-28880][docs][cep] Fix wrong result of strict contiguity of looping patterns
6eced8aa39c is described below

commit 6eced8aa39c9e16b9918bd8b05fed1a1e17b6fe7
Author: Juntao Hu <ma...@gmail.com>
AuthorDate: Tue Aug 9 11:15:11 2022 +0800

    [FLINK-28880][docs][cep] Fix wrong result of strict contiguity of looping patterns
---
 docs/content.zh/docs/libs/cep.md | 2 +-
 docs/content/docs/libs/cep.md    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/content.zh/docs/libs/cep.md b/docs/content.zh/docs/libs/cep.md
index 3bb7db0d2d4..2666ebad53a 100644
--- a/docs/content.zh/docs/libs/cep.md
+++ b/docs/content.zh/docs/libs/cep.md
@@ -767,7 +767,7 @@ next.within(Time.seconds(10))
 用这个例子来说明上面所说的连续性,一个模式序列`"a b+ c"`(`"a"`后面跟着一个或者多个(不确定连续的)`"b"`,然后跟着一个`"c"`)
 输入为`"a","b1","d1","b2","d2","b3","c"`,输出结果如下:
 
- 1. **严格连续**: `{a b3 c}` -- `"b1"`之后的`"d1"`导致`"b1"`被丢弃,同样`"b2"`因为`"d2"`被丢弃。
+ 1. **严格连续**: `{a b1 c}`, `{a b2 c}`, `{a b3 c}` - 没有相邻的 `"b"` 。
 
  2. **松散连续**: `{a b1 c}`,`{a b1 b2 c}`,`{a b1 b2 b3 c}`,`{a b2 c}`,`{a b2 b3 c}`,`{a b3 c}` - `"d"`都被忽略了。
 
diff --git a/docs/content/docs/libs/cep.md b/docs/content/docs/libs/cep.md
index fc541e2afd9..66e32c2085b 100644
--- a/docs/content/docs/libs/cep.md
+++ b/docs/content/docs/libs/cep.md
@@ -725,7 +725,7 @@ The contiguity will be applied between elements accepted into such a pattern.
 To illustrate the above with an example, a pattern sequence `"a b+ c"` (`"a"` followed by any(non-deterministic relaxed) sequence of one or more `"b"`'s followed by a `"c"`) with
 input `"a", "b1", "d1", "b2", "d2", "b3" "c"` will have the following results:
 
- 1. **Strict Contiguity**: `{a b3 c}` -- the `"d1"` after `"b1"` causes `"b1"` to be discarded, the same happens for `"b2"` because of `"d2"`.
+ 1. **Strict Contiguity**: `{a b1 c}`, `{a b2 c}`, `{a b3 c}` - there are no adjacent `"b"`s.
 
  2. **Relaxed Contiguity**: `{a b1 c}`, `{a b1 b2 c}`, `{a b1 b2 b3 c}`, `{a b2 c}`, `{a b2 b3 c}`, `{a b3 c}` - `"d"`'s are ignored.