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_r362364858
 
 

 ##########
 File path: docs/dev/table/sql/queries.zh.md
 ##########
 @@ -25,41 +25,41 @@ under the License.
 * This will be replaced by the TOC
 {:toc}
 
-SELECT queries are specified with the `sqlQuery()` method of the 
`TableEnvironment`. The method returns the result of the SELECT query as a 
`Table`. A `Table` can be used in [subsequent SQL and Table API queries]({{ 
site.baseurl }}/dev/table/common.html#mixing-table-api-and-sql), be [converted 
into a DataSet or DataStream]({{ site.baseurl 
}}/dev/table/common.html#integration-with-datastream-and-dataset-api), or 
[written to a TableSink]({{ site.baseurl 
}}/dev/table/common.html#emit-a-table). SQL and Table API queries can be 
seamlessly mixed and are holistically optimized and translated into a single 
program.
+SELECT 查询需要使用 `TableEnvironment` 的 `sqlQuery()` 方法加以指定。这个方法会以 `Table` 的形式返回 
SELECT 的查询结果。 `Table` 可以被用于 [随后的SQL 与 Table API 查询]({{ site.baseurl 
}}/zh/dev/table/common.html#mixing-table-api-and-sql) 、 [转换为 DataSet 或 
DataStream ]({{ site.baseurl 
}}/zh/dev/table/common.html#integration-with-datastream-and-dataset-api)或 [输出到 
TableSink ]({{ site.baseurl }}/dev/table/common.html#emit-a-table))。SQL 与 Table 
API 的查询可以进行无缝融合、整体优化并翻译为单一的程序。
 
-In order to access a table in a SQL query, it must be [registered in the 
TableEnvironment]({{ site.baseurl 
}}/dev/table/common.html#register-tables-in-the-catalog). A table can be 
registered from a [TableSource]({{ site.baseurl 
}}/dev/table/common.html#register-a-tablesource), [Table]({{ site.baseurl 
}}/dev/table/common.html#register-a-table), [CREATE TABLE 
statement](#create-table), [DataStream, or DataSet]({{ site.baseurl 
}}/dev/table/common.html#register-a-datastream-or-dataset-as-table). 
Alternatively, users can also [register catalogs in a TableEnvironment]({{ 
site.baseurl }}/dev/table/catalogs.html) to specify the location of the data 
sources.
+为了可以在 SQL 查询中访问到表,你需要先 [在 TableEnvironment 中注册表 ]({{ site.baseurl 
}}/zh/dev/table/common.html#register-tables-in-the-catalog). 表可以通过 
[TableSource]({{ site.baseurl 
}}/zh/dev/table/common.html#register-a-tablesource)、 [Table]({{ site.baseurl 
}}/zh/dev/table/common.html#register-a-table)、[CREATE TABLE 语句](create.html)、 
[DataStream 或 DataSet]({{ site.baseurl 
}}/zh/dev/table/common.html#register-a-datastream-or-dataset-as-table) 注册。 
用户也可以通过 [向 TableEnvironment 中注册 catalog ]({{ site.baseurl 
}}/zh/dev/table/catalogs.html) 的方式指定数据源的位置。
 
 Review comment:
   ```suggestion
   为了可以在 SQL 查询中访问到表,你需要先 [在 TableEnvironment 中注册表 ]({{ site.baseurl 
}}/zh/dev/table/common.html#register-tables-in-the-catalog)。表可以通过 
[TableSource]({{ site.baseurl 
}}/zh/dev/table/common.html#register-a-tablesource)、 [Table]({{ site.baseurl 
}}/zh/dev/table/common.html#register-a-table)、[CREATE TABLE 语句](create.html)、 
[DataStream 或 DataSet]({{ site.baseurl 
}}/zh/dev/table/common.html#register-a-datastream-or-dataset-as-table) 注册。 
用户也可以通过 [向 TableEnvironment 中注册 catalog ]({{ site.baseurl 
}}/zh/dev/table/catalogs.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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to