XBaith commented on a change in pull request #11961: URL: https://github.com/apache/flink/pull/11961#discussion_r420289792
########## File path: docs/dev/table/sqlClient.zh.md ########## @@ -519,18 +521,18 @@ Job ID: 6f922fe5cba87406ff23ae4a7bb79044 Web interface: http://localhost:8081 {% endhighlight %} -<span class="label label-danger">Attention</span> The SQL Client does not track the status of the running Flink job after submission. The CLI process can be shutdown after the submission without affecting the detached query. Flink's [restart strategy]({{ site.baseurl }}/dev/restart_strategies.html) takes care of the fault-tolerance. A query can be cancelled using Flink's web interface, command-line, or REST API. +<span class="label label-danger">注意</span> The SQL Client does not track the status of the running Flink job after submission. The CLI process can be shutdown after the submission without affecting the detached query. Flink's [restart strategy]({{ site.baseurl }}/zh/dev/restart_strategies.html) takes care of the fault-tolerance. A query can be cancelled using Flink's web interface, command-line, or REST API.提交后,SQL 客户端不追踪正在运行的 Flink 作业状态。提交后可以关闭 CLI 进程,并且不会影响分离的查询。Flink 的[重启策略]({{ site.baseurl }}/zh/dev/restart_strategies.html)负责容错。取消查询可以用 Flink 的 web 接口、命令行或 REST API 。 {% top %} -SQL Views +SQL 视图 --------- -Views allow to define virtual tables from SQL queries. The view definition is parsed and validated immediately. However, the actual execution happens when the view is accessed during the submission of a general `INSERT INTO` or `SELECT` statement. +视图允许通过 SQL 查询来定义,是一张虚拟表。视图的定义会被立即解析与验证。然而,提交常规 `INSERT INTO` 或 `SELECT` 语句后不会立即执行,在访问视图时才会真正执行。 -Views can either be defined in [environment files](sqlClient.html#environment-files) or within the CLI session. +视图可以用[环境配置文件](sqlClient.html#environment-files)或者 CLI 会话来定义。 -The following example shows how to define multiple views in a file. The views are registered in the order in which they are defined in the environment file. Reference chains such as _view A depends on view B depends on view C_ are supported. +下例展示如何在一个文件里定义多张视图。视图注册的顺序和定义它们的环境配置文件一致。支持诸如_视图 A 依赖视图 B ,视图 B 依赖视图 C_ 的引用链。 Review comment: 一般习惯用视图而非视图表?个人觉得用视图能跟表分的更清楚。 ---------------------------------------------------------------- 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]
