klion26 commented on a change in pull request #11664:
URL: https://github.com/apache/flink/pull/11664#discussion_r431198978
##########
File path: docs/dev/stream/state/state.zh.md
##########
@@ -91,7 +91,7 @@ managed keyed state 接口提供不同类型状态的访问接口,这些状态
所有类型的状态还有一个`clear()` 方法,清除当前 key 下的状态数据,也就是当前输入元素的 key。
Review comment:
这个 PR 应该只涉及 "Hive Functions" 页面的改动,“state.zh.md" 的修改改回去吧
##########
File path: docs/dev/table/hive/hive_functions.zh.md
##########
@@ -172,7 +171,7 @@ public class TestHiveUDTF extends GenericUDTF {
{% endhighlight %}
Review comment:
上面代码中的注释也翻译下吧
##########
File path: docs/dev/table/hive/hive_functions.zh.md
##########
@@ -58,34 +58,33 @@ modules:
</div>
</div>
-* NOTE that some Hive built-in functions in older versions have [thread safety
issues](https://issues.apache.org/jira/browse/HIVE-16183).
-We recommend users patch their own Hive to fix them.
+* 请注意旧版本的部分 Hive 内置函数存在
[线程安全问题](https://issues.apache.org/jira/browse/HIVE-16183)。
+我们建议用户及时通过补丁修正 Hive 中的这些问题。
-## Hive User Defined Functions
+## Hive 用户自定义函数(User Defined Functions)
-Users can use their existing Hive User Defined Functions in Flink.
+在 Flink 中用户可以使用 Hive 里已经存在的 UDF 函数。
-Supported UDF types include:
+支持的 UDF 类型包括:
- UDF
- GenericUDF
- GenericUDTF
- UDAF
- GenericUDAFResolver2
-Upon query planning and execution, Hive's UDF and GenericUDF are automatically
translated into Flink's ScalarFunction,
-Hive's GenericUDTF is automatically translated into Flink's TableFunction,
-and Hive's UDAF and GenericUDAFResolver2 are translated into Flink's
AggregateFunction.
+在进行查询规划和执行时,Hive UDF 和 GenericUDF 函数会自动转换成 Flink 中的 ScalarFunction,GenericUDTF
会被自动转换成 Flink 中的
+ TableFunction,UDAF 和 GenericUDAFResolver2 则转换成 Flink 聚合函数(AggregateFunction).
-To use a Hive User Defined Function, user have to
+想要使用 Hive UDF 函数,需要如下几步:
-- set a HiveCatalog backed by Hive Metastore that contains that function as
current catalog of the session
-- include a jar that contains that function in Flink's classpath
-- use Blink planner.
+- 通过 Hive Metastore 将带有 UDF 的 HiveCatalog 设置为当前会话的 catalog 后端。
+- 引入 Flink classpath 中带有 UDF 的 jar 包。
Review comment:
这里的意思是说”应该将包含这个函数的的 jar 包加到 Flink 的 classpath 中“吧,现在的意思有一些不对
----------------------------------------------------------------
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]