[
https://issues.apache.org/jira/browse/FLINK-7151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16401595#comment-16401595
]
yinhua.dai edited comment on FLINK-7151 at 3/16/18 8:36 AM:
------------------------------------------------------------
That's great, thanks [~suez1224]
And would like to confirm that CREATE TABLE should be able to specify a flink
connector like kafka, right? And would it be able to specify my own data source
or if there a way to do that?
was (Author: yinhua):
That's great, thanks [~suez1224]
> FLINK SQL support create temporary function and table
> -----------------------------------------------------
>
> Key: FLINK-7151
> URL: https://issues.apache.org/jira/browse/FLINK-7151
> Project: Flink
> Issue Type: New Feature
> Components: Table API & SQL
> Reporter: yuemeng
> Assignee: yuemeng
> Priority: Major
>
> Based on create temporary function and table.we can register a udf,udaf,udtf
> use sql:
> {code}
> CREATE TEMPORARY function 'TOPK' AS
> 'com.xxxx.aggregate.udaf.distinctUdaf.topk.ITopKUDAF';
> INSERT INTO db_sink SELECT id, TOPK(price, 5, 'DESC') FROM kafka_source GROUP
> BY id;
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)