New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-16101][docs-zh] Translate "Hive Functions" page of "Hive Integration" into Chinese #11664
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 47d39a1 (Wed Apr 08 02:34:33 UTC 2020) ✅no warnings Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
Wrong issue number? I think it should be FLINK-16101? |
Btw, please request assignee before open a pull request. |
Sorry for that,the title of the issue contains two issue number like this : |
How to request assignee, Sorry I'm a newbie. |
In the https://issues.apache.org/jira/browse/FLINK-16101 and https://github.com/apache/flink page, I can't find the assignee request entrance. |
Hi @zzh1985, you can leave a comment under FLINK-16101 issue page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
The `HiveModule` provides Hive built-in functions as Flink system (built-in) functions to Flink SQL and Table API users. | ||
在Flink SQL 和 Table API 中,可以通过系统内置的`HiveModule` 来使用 Hive 内置函数, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在Flink SQL 和 Table API 中,可以通过系统内置的`HiveModule` 来使用 Hive 内置函数, | |
在 Flink SQL 和 Table API 中,可以通过系统内置的`HiveModule` 来使用 Hive 内置函数, |
|
||
For detailed information, please refer to [HiveModule]({{ site.baseurl }}/dev/table/modules.html#hivemodule). | ||
详细信息,请参考 [HiveModule]({{ site.baseurl }}/dev/table/modules.html#hivemodule)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
详细信息,请参考 [HiveModule]({{ site.baseurl }}/dev/table/modules.html#hivemodule)。 | |
详细信息,请参考 [HiveModule]({{ site.baseurl }}/zh/dev/table/modules.html#hivemodule)。 |
@@ -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)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 请注意在旧版本的部分 Hive 内置函数存在 [线程安全问题](https://issues.apache.org/jira/browse/HIVE-16183)。 | |
* 请注意旧版本的部分 Hive 内置函数存在 [线程安全问题](https://issues.apache.org/jira/browse/HIVE-16183)。 |
@@ -184,8 +183,7 @@ myudtf | |||
|
|||
{% endhighlight %} | |||
|
|||
|
|||
Then, users can use them in SQL as: | |||
此时,用户如果想使用这些UDF,在 SQL 中就可以这样写: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此时,用户如果想使用这些UDF,在 SQL 中就可以这样写: | |
此时,用户如果想使用这些 UDF,在 SQL 中就可以这样写: |
…ration" into Chinese 20200409 mudify mistakes on the basis of comments
…ration" into Chinese 20200409 modify mistakes on the basis of comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zzh1985 thanks for the contribution, I left some comments.
sorry for the late response. please ping me if I did not give any response in the future. in case I missed the notification.
docs/dev/stream/state/state.zh.md
Outdated
@@ -91,7 +91,7 @@ managed keyed state 接口提供不同类型状态的访问接口,这些状态 | |||
|
|||
所有类型的状态还有一个`clear()` 方法,清除当前 key 下的状态数据,也就是当前输入元素的 key。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 PR 应该只涉及 "Hive Functions" 页面的改动,“state.zh.md" 的修改改回去吧
- include a jar that contains that function in Flink's classpath | ||
- use Blink planner. | ||
- 通过 Hive Metastore 将带有 UDF 的 HiveCatalog 设置为当前会话的 catalog 后端。 | ||
- 引入 Flink classpath 中带有 UDF 的 jar 包。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的意思是说”应该将包含这个函数的的 jar 包加到 Flink 的 classpath 中“吧,现在的意思有一些不对
@@ -172,7 +171,7 @@ public class TestHiveUDTF extends GenericUDTF { | |||
|
|||
{% endhighlight %} | |||
|
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
…h] Chinese wrongly written
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zzh1985 thanks for addressing my comments, left two more comments. please take another look
docs/dev/stream/state/state.zh.md
Outdated
@@ -472,7 +472,7 @@ val counts: DataStream[(String, Int)] = stream | |||
|
|||
## 使用 Managed Operator State | |||
|
|||
用户可以通过实现 `CheckpointedFunction` 或 `ListCheckpointed<T extends Serializable>` 接口来使用 managed operator state。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
把这个文档的修改 revert 回去吧,这个 PR 仅修改 hive function 的翻译,改完后可以 ping 我
@@ -58,39 +58,38 @@ 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)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 请注意旧版本的部分 Hive 内置函数存在 [线程安全问题](https://issues.apache.org/jira/browse/HIVE-16183)。 | |
* 请注意旧版本的部分 Hive 内置函数存在[线程安全问题](https://issues.apache.org/jira/browse/HIVE-16183)。 |
@klion26 按您的意思修改了,你再帮忙再给看一下。新手犯了一些低级错误,请见谅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…e Integration" into Chinese This closes #11664
…e Integration" into Chinese This closes apache#11664
What is the purpose of the change
Translate the Hive functions doc to Chinese
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: ( no)Documentation