You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/16 08:41:41 UTC

[jira] [Commented] (FLINK-6068) Support If() in built in function of TableAPI

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

ASF GitHub Bot commented on FLINK-6068:
---------------------------------------

GitHub user clarkyzl opened a pull request:

    https://github.com/apache/flink/pull/3553

    [FLINK-6068] [table] Support If() in built in function of TableAPI

    Type: Improvement
    Priority: Major
    Components: table, udf
    Problem Definition:  We didn't register the if() in the function category. We didn't support syntax 'if(a, b, c)'.
    
    Design: 
    1. Register If in function category.
    1. Add some tests.
    
    Impact Analysis: A newly registered function, without more impacts on others.
    Test:
    `mvn clean verify` is done

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/clarkyzl/flink flink-6068

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/3553.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3553
    
----
commit fcc82d7ff106af7315d8e0f57993212e8221e9e9
Author: Zhuoluo Yang <zh...@alibaba-inc.com>
Date:   2017-03-16T08:07:33Z

    [FLINK-6068] [table] Support If() in built in function of TableAPI

----


> Support If() in built in function of TableAPI
> ---------------------------------------------
>
>                 Key: FLINK-6068
>                 URL: https://issues.apache.org/jira/browse/FLINK-6068
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Zhuoluo Yang
>            Assignee: Zhuoluo Yang
>
> Most sql system support if() as an built-in udf. However, we didn't register the if() in the function category. A great many of our users use syntax 'if(a, b, c)'. Also most sql systems support 'if(a, b, c)' syntax.
> Mysql: https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#function_if
> Hive: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-ConditionalFunctions



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)