You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Guibo Pan (JIRA)" <ji...@apache.org> on 2018/08/14 17:09:00 UTC

[jira] [Created] (FLINK-10145) Add replace supported in TableAPI and SQL

Guibo Pan created FLINK-10145:
---------------------------------

             Summary: 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


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
(v7.6.3#76005)