YngwieWang commented on a change in pull request #9350: [FLINK-13485] 
[chinese-translation] Translate "Table API Example Walkthrough" page into 
Chinese
URL: https://github.com/apache/flink/pull/9350#discussion_r310366590
 
 

 ##########
 File path: docs/getting-started/walkthroughs/table_api.zh.md
 ##########
 @@ -250,14 +255,13 @@ env.execute("Spend Report")
 </div>
 </div>
 
-## Attempt One
-
-Now with the skeleton of a Job set-up, you are ready to add some business 
logic.
-The goal is to build a report that shows the total spend for each account 
across each hour of the day.
-Just like a SQL query, Flink can select the required fields and group by your 
keys.
-Because the timestamp field has millisecond granularity, you can use the UDF 
to round it down to the nearest hour.
-Finally, select all the fields, summing the total spend per account-hour pair 
with the built-in `sum` [aggregate function]({{ site.baseurl 
}}/dev/table/functions.html#aggregate-functions).
+## 尝试一下
 
+随着作业的骨架部分建立完毕,你可以给它加一些业务逻辑。
+这个程序的目标是建立一个报表来显示每天每小时每个账号的总支出。
+就像一个SQL查询一样,Flink可以选取所需的字段然后根据你的键来进行分组。
+因为时间戳是以毫秒作为单位的,所以你可以使用UDF来对它进行取整到最近的时刻。
+最后,选取所有的字段,用内建的 `sum` [聚合函数]({{ site.baseurl 
}}/dev/table/functions.html#aggregate-functions)函数来对每一个账户每小时的支出进行求和。
 
 Review comment:
   ```suggestion
   最后,选取所有的字段,用内建的 `sum` [聚合函数]({{ site.baseurl 
}}/zh/dev/table/functions.html#aggregate-functions)函数合计每一个账户每小时的支出。
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to