You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (JIRA)" <ji...@apache.org> on 2017/07/11 11:58:00 UTC

[jira] [Commented] (FLINK-7151) FLINK SQL support create temporary function and table

    [ https://issues.apache.org/jira/browse/FLINK-7151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16082103#comment-16082103 ] 

Fabian Hueske commented on FLINK-7151:
--------------------------------------

Registration of functions and inserting into tables are two unrelated issues. Can you please split this issue? Thank you

> 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
>            Reporter: yuemeng
>
> 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
(v6.4.14#64029)