You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by 爱成绕指柔 <11...@qq.com> on 2020/11/26 14:55:35 UTC

flink sql实时计算分位数如何实现

你好:
&nbsp; &nbsp; 目前flink sql实时计算中没有percentile函数吗?如果没有,如何实现这一功能。
&nbsp; &nbsp; 期待你的答复,谢谢!

Re:flink sql实时计算分位数如何实现

Posted by hailongwang <18...@163.com>.
Hi,
  `Percentile` 函数应该是 hive 内置的 UDF,在 Flink SQL 可以直接使用 Hive 的内置 UDF,
具体使用方式可查阅文档[1].
[1]https://ci.apache.org/projects/flink/flink-docs-master/dev/table/connectors/hive/hive_functions.html


Best,
Hailong

在 2020-11-26 21:55:35,"爱成绕指柔" <11...@qq.com> 写道:
>你好:
>&nbsp; &nbsp; 目前flink sql实时计算中没有percentile函数吗?如果没有,如何实现这一功能。
>&nbsp; &nbsp; 期待你的答复,谢谢!