libenchao commented on a change in pull request #10822:
[FLINK-15081][docs-zh]Translate "Concepts & Common API" page of Table…
URL: https://github.com/apache/flink/pull/10822#discussion_r382666789
##########
File path: docs/dev/table/common.zh.md
##########
@@ -827,70 +806,70 @@ result.insert_into("CsvSinkTable")
{% top %}
-Translate and Execute a Query
+解析与执行查询
-----------------------------
-The behavior of translating and executing a query is different for the two
planners.
+两种计划器解析和执行查询的方式是不同的。
<div class="codetabs" markdown="1">
<div data-lang="Old planner" markdown="1">
-Table API and SQL queries are translated into [DataStream]({{ site.baseurl
}}/dev/datastream_api.html) or [DataSet]({{ site.baseurl }}/dev/batch) programs
depending on whether their input is a streaming or batch input. A query is
internally represented as a logical query plan and is translated in two phases:
+Table API 和 SQL 查询会被解析成 [流处理]({{ site.baseurl
}}/zh/dev/datastream_api.html)或者[批处理]({{ site.baseurl }}/zh/dev/batch)程序,
这取决于它们的输入数据源是流式的还是批式的。查询在内部表示为逻辑查询计划,并被解析成两个阶段:
-1. Optimization of the logical plan
-2. Translation into a DataStream or DataSet program
+1. 优化逻辑执行计划
+2. 解析成流处理或批处理程序
-A Table API or SQL query is translated when:
+Table API 或者 SQL 查询在下列情况下会被解析:
-* a `Table` is emitted to a `TableSink`, i.e., when `Table.insertInto()` is
called.
-* a SQL update query is specified, i.e., when `TableEnvironment.sqlUpdate()`
is called.
-* a `Table` is converted into a `DataStream` or `DataSet` (see [Integration
with DataStream and DataSet API](#integration-with-datastream-and-dataset-api)).
+* `表`被发送给 `TableSink`,即当调用 `Table.insertInto()` 时。
+* SQL 更新语句执行时,即,当调用 `TableEnvironment.sqlUpdate()` 时。
+* `表`被转换成`流数据`或者`批数据`时(参阅[与 DataStream 和 DataSet API
结合](#integration-with-datastream-and-dataset-api))。
-Once translated, a Table API or SQL query is handled like a regular DataStream
or DataSet program and is executed when `StreamExecutionEnvironment.execute()`
or `ExecutionEnvironment.execute()` is called.
+解析完成后,Table API 或者 SQL 查询会被当做普通的流处理或批处理程序对待并且会在调用
`StreamExecutionEnvironment.execute()` 或 `ExecutionEnvironment.execute()`
的时候被执行。
</div>
<div data-lang="Blink planner" markdown="1">
-Table API and SQL queries are translated into [DataStream]({{ site.baseurl
}}/dev/datastream_api.html) programs whether their input is streaming or batch.
A query is internally represented as a logical query plan and is translated in
two phases:
+Table API 和 SQL 查询会被转换成[流处理]({{ site.baseurl
}}/zh/dev/datastream_api.html)程序不论它们的输入数据源是流式的还是批式的。查询在内部表示为逻辑查询计划,并被解析成两个阶段:
Review comment:
Table API 和 SQL 查询会被转换成[流处理]({{ site.baseurl
}}/zh/dev/datastream_api.html)程序不论它们的输入数据源是流式的还是批式的
->
不论输入数据源是流式的还是批式的,Table API 和 SQL 查询都会被转换成[流处理]({{ site.baseurl
}}/zh/dev/datastream_api.html)程序。
----------------------------------------------------------------
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