flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-10145) Add replace supported in TableAPI and SQL
Date Tue, 21 Aug 2018 06:33:00 GMT

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

ASF GitHub Bot commented on FLINK-10145:

Guibo-Pan commented on issue #6576: [FLINK-10145][table] Add replace supported in TableAPI
and SQL
URL: https://github.com/apache/flink/pull/6576#issuecomment-414564921
   Thanks for your patient review, @xccui . I have update the docs and styles.
   I am not so familiar with `CodeGenerator` so far. At the comment you said:
   > in SQL convention, any null argument will lead to a null result. Thus when generating
a scalar function call, all the arguments (expressions) will be first checked to ensure not
   I did make some test cases on null inputs, it seems that the builtin `replace` can not
pass. So I change the builtin `replace` to my `replace` in commit b262a4.
   I think maybe something is misunderstand by me, can you give me more guidance to help me
understand it? Thanks.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Add replace supported in TableAPI and SQL
> -----------------------------------------
>                 Key: FLINK-10145
>                 URL: https://issues.apache.org/jira/browse/FLINK-10145
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API &amp; SQL
>            Reporter: Guibo Pan
>            Assignee: Guibo Pan
>            Priority: Major
>              Labels: pull-request-available
> replace is an useful function for String. 
> for example:
> {code:java}
> select replace("Hello World", "World", "Flink") // return "Hello Flink"
> select replace("ababab", "abab", "z") // return "zab"
> {code}
> It is supported as a UDF in Hive, more details please see[1]
> [1]: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-StringFunctions

This message was sent by Atlassian JIRA

View raw message