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_r382569937
##########
File path: docs/dev/table/common.zh.md
##########
@@ -22,28 +22,28 @@ specific language governing permissions and limitations
under the License.
-->
-The Table API and SQL are integrated in a joint API. The central concept of
this API is a `Table` which serves as input and output of queries. This
document shows the common structure of programs with Table API and SQL queries,
how to register a `Table`, how to query a `Table`, and how to emit a `Table`.
+Table API 和 SQL 集成在同一套 API 中。这套 API 的核心概念是`表(Table)`,用作查询的输入和输出。本文介绍了 Table
API 和 SQL 查询程序的通用结构、如何注册`表`、如何查询`表`以及如何发出`表`。
* This will be replaced by the TOC
{:toc}
-Main Differences Between the Two Planners
+两种计划器(Planner)的主要区别
-----------------------------------------
-1. Blink treats batch jobs as a special case of streaming. As such, the
conversion between Table and DataSet is also not supported, and batch jobs will
not be translated into `DateSet` programs but translated into `DataStream`
programs, the same as the streaming jobs.
-2. The Blink planner does not support `BatchTableSource`, use bounded
`StreamTableSource` instead of it.
-3. The Blink planner only support the brand new `Catalog` and does not support
`ExternalCatalog` which is deprecated.
-4. The implementations of `FilterableTableSource` for the old planner and the
Blink planner are incompatible. The old planner will push down
`PlannerExpression`s into `FilterableTableSource`, while the Blink planner will
push down `Expression`s.
-5. String based key-value config options (Please see the documentation about
[Configuration]({{ site.baseurl }}/dev/table/config.html) for details) are only
used for the Blink planner.
-6. The implementation(`CalciteConfig`) of `PlannerConfig` in two planners is
different.
-7. The Blink planner will optimize multiple-sinks into one DAG (supported only
on `TableEnvironment`, not on `StreamTableEnvironment`). The old planner will
always optimize each sink into a new DAG, where all DAGs are independent of
each other.
-8. The old planner does not support catalog statistics now, while the Blink
planner does.
+1. Blink
将批处理作业视作流处理的一种特例。严格来说,表和批数据之间的转换并不受支持,并且批处理作业也不会转换成`批处理`程序而是转换成流处理程序,`流处理`作业也一样。
Review comment:
”严格来说,表和批数据之间的转换并不受支持“ -> "因此,并不支持 Table 和 DataSet 互相转换"。
IMO,we don't need to translate `DataSet` and `DataStream`.
----------------------------------------------------------------
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