RocMarshal commented on a change in pull request #12798:
URL: https://github.com/apache/flink/pull/12798#discussion_r450192480



##########
File path: docs/dev/table/streaming/match_recognize.zh.md
##########
@@ -323,52 +257,43 @@ ACME       01-APR-11 10:00:00  01-APR-11 10:00:03     14.5
 ACME       01-APR-11 10:00:05  01-APR-11 10:00:10     13.5
 {% endhighlight %}
 
-<span class="label label-info">Note</span> Aggregations can be applied to 
expressions, but only if
-they reference a single pattern variable. Thus `SUM(A.price * A.tax)` is a 
valid one, but
-`AVG(A.price * B.tax)` is not.
+<span class="label label-info">注意</span> 
聚合可以应用于表达式,但前提是它们引用单个模式变量。因此,`SUM(A.price * A.tax)` 是有效的,而 `AVG(A.price * 
B.tax)` 则是无效的。
 
-<span class="label label-danger">Attention</span> `DISTINCT` aggregations are 
not supported.
+<span class="label label-danger">注意</span> 不支持 `DISTINCT` 聚合。
 
-Defining a Pattern
+定义模式
 ------------------
 
-The `MATCH_RECOGNIZE` clause allows users to search for patterns in event 
streams using a powerful
-and expressive syntax that is somewhat similar to the widespread regular 
expression syntax.
+`MATCH_RECOGNIZE` 子句允许用户在事件流中使用功能强大、表达力强的语法搜索模式,这种语法与广泛使用的正则表达式语法有些相似。
 
-Every pattern is constructed from basic building blocks, called _pattern 
variables_, to which
-operators (quantifiers and other modifiers) can be applied. The whole pattern 
must be enclosed in
-brackets.
+每个模式都是由基本的构建块构造的,称为 _pattern variables_,可以应用算子(量词和其他修饰符)到这些模块中。整个模式必须用括号括起来。
 
-An example pattern could look like:
+示例模式如下所示:
 
 {% highlight sql %}
 PATTERN (A B+ C* D)
 {% endhighlight %}
 
-One may use the following operators:
+可以使用以下算子:
+
+* _Concatenation_ - 像 `(A B)` 这样的模式意味着 `A` 和 `B` 之间的连接是严格的。因此,在它们之间不能存在没有映射到 
`A` 或 `B` 的行。
+* _Quantifiers_ - 修改可以映射到模式变量的行数。
+  * `*` — _0_ 或者多行
+  * `+` — _1_ 或者多行
+  * `?` — _0_ 或者 _1_ 行
+  * `{ n }` — 严格 _n_ 行(_n > 0_)
+  * `{ n, }` — _n_ 或者更多行(_n ≥ 0_)
+  * `{ n, m }` — 在 _n_ 到 _m_(包含)行之间(_0 ≤ n ≤ m,0 < m_)
+  * `{ , m }` — 在 _0_ 到 _m_(包含)行之间(_m > 0_)
 
-* _Concatenation_ - a pattern like `(A B)` means that the contiguity is strict 
between `A` and `B`.
-  Therefore, there can be no rows that were not mapped to `A` or `B` in 
between.
-* _Quantifiers_ - modify the number of rows that can be mapped to the pattern 
variable.
-  * `*` — _0_ or more rows
-  * `+` — _1_ or more rows
-  * `?` — _0_ or _1_ rows
-  * `{ n }` — exactly _n_ rows (_n > 0_)
-  * `{ n, }` — _n_ or more rows (_n ≥ 0_)
-  * `{ n, m }` — between _n_ and _m_ (inclusive) rows (_0 ≤ n ≤ m, 0 < m_)
-  * `{ , m }` — between _0_ and _m_ (inclusive) rows (_m > 0_)
 
-<span class="label label-danger">Attention</span> Patterns that can 
potentially produce an empty
-match are not supported. Examples of such patterns are `PATTERN (A*)`, 
`PATTERN  (A? B*)`,
-`PATTERN (A{0,} B{0,} C*)`, etc.
+<span class="label label-danger">注意</span> 不支持可能产生空匹配的模式。此类模式的示例如 `PATTERN 
(A*)`,`PATTERN  (A? B*)`,`PATTERN (A{0,} B{0,} C*)` 等。
 
-### Greedy & Reluctant Quantifiers
+### 贪婪和勉强量词

Review comment:
       Could you tell me about your suggestions? @klion26 @XBaith 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to