wuchong commented on a change in pull request #10738: 
[FLINK-15385][table][docs] Translate SQL section of Table API into Chinese
URL: https://github.com/apache/flink/pull/10738#discussion_r362367550
 
 

 ##########
 File path: docs/dev/table/sql/queries.zh.md
 ##########
 @@ -1063,49 +1058,49 @@ val result1 = tableEnv.sqlQuery(
 
 {% top %}
 
-### Group Windows
+### 分组窗口
 
-Group windows are defined in the `GROUP BY` clause of a SQL query. Just like 
queries with regular `GROUP BY` clauses, queries with a `GROUP BY` clause that 
includes a group window function compute a single result row per group. The 
following group windows functions are supported for SQL on batch and streaming 
tables.
+SQL 查询的分组窗口是通过 `GROUP BY` 子句定义的。类似于使用常规 `GROUP BY` 语句的查询,窗口分组语句的 `GROUP BY` 
子句中带有一个窗口函数为每个分组计算出一个结果。以下是批处理表和流处理表支持的分组窗口函数:
 
 <table class="table table-bordered">
   <thead>
     <tr>
-      <th class="text-left" style="width: 30%">Group Window Function</th>
-      <th class="text-left">Description</th>
+      <th class="text-left" style="width: 30%">分组窗口函数</th>
+      <th class="text-left">描述</th>
     </tr>
   </thead>
 
   <tbody>
     <tr>
       <td><code>TUMBLE(time_attr, interval)</code></td>
-      <td>Defines a tumbling time window. A tumbling time window assigns rows 
to non-overlapping, continuous windows with a fixed duration 
(<code>interval</code>). For example, a tumbling window of 5 minutes groups 
rows in 5 minutes intervals. Tumbling windows can be defined on event-time 
(stream + batch) or processing-time (stream).</td>
+      <td>定义一个滚动窗口。滚动窗口把行分配到有固定持续时间( <code>interval</code> )的不重叠的连续窗口。比如,5 
分钟的滚动窗口以 5 分钟为间隔对行进行分组。滚动窗口可以定义在事件时间(批处理、流处理)或处理时间(流处理)上。</td>
     </tr>
     <tr>
       <td><code>HOP(time_attr, interval, interval)</code></td>
-      <td>Defines a hopping time window (called sliding window in the Table 
API). A hopping time window has a fixed duration (second <code>interval</code> 
parameter) and hops by a specified hop interval (first <code>interval</code> 
parameter). If the hop interval is smaller than the window size, hopping 
windows are overlapping. Thus, rows can be assigned to multiple windows. For 
example, a hopping window of 15 minutes size and 5 minute hop interval assigns 
each row to 3 different windows of 15 minute size, which are evaluated in an 
interval of 5 minutes. Hopping windows can be defined on event-time (stream + 
batch) or processing-time (stream).</td>
+      <td>定义一个跳跃的时间窗口(在 Table API 中称为滑动窗口)。滑动窗口有一个固定的持续时间( 第二个 
<code>interval</code> 参数 )以及一个滑动的间隔(第一个 code>interval</code> 参数 
)。若滑动间隔小于窗口的持续时间,滑动窗口则会出现重叠;因此,行将会被分配到多个窗口中。比如,一个大小为 15 分组的滑动窗口,其滑动间隔为 5 
分钟,将会把每一行数据分配到 3 个 15 分钟的窗口中。滑动窗口可以定义在事件时间(批处理、流处理)或处理时间(流处理)上。</td>
 
 Review comment:
   ```suggestion
         <td>定义一个跳跃的时间窗口(在 Table API 中称为滑动窗口)。滑动窗口有一个固定的持续时间( 第二个 
<code>interval</code> 参数 )以及一个滑动的间隔(第一个 <code>interval</code> 参数 
)。若滑动间隔小于窗口的持续时间,滑动窗口则会出现重叠;因此,行将会被分配到多个窗口中。比如,一个大小为 15 分组的滑动窗口,其滑动间隔为 5 
分钟,将会把每一行数据分配到 3 个 15 分钟的窗口中。滑动窗口可以定义在事件时间(批处理、流处理)或处理时间(流处理)上。</td>
   ```

----------------------------------------------------------------
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


With regards,
Apache Git Services

Reply via email to