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

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

xccui commented on a change in pull request #6450: [FLINK-9991] [table] Add 
regexp_replace supported in TableAPI and SQL
URL: https://github.com/apache/flink/pull/6450#discussion_r216953272
 
 

 ##########
 File path: docs/dev/table/functions.md
 ##########
 @@ -2866,6 +2890,18 @@ STRING.repeat(INT)
       </td>
     </tr> 
 
+    <tr>
+      <td>
+        {% highlight scala %}
+STRING1.regexpReplace(STRING2, STRING3)
+{% endhighlight %}
+      </td>
+       <td>
+         <p>Returns a string resulting from replacing all substrings in 
<i>string1</i> that match the regular expression <i>string2</i> with 
replacement <i>string3</i>, if <i>string1</i> or <i>string2</i> or 
<i>string3</i> is NULL, returns NULL.</p> 
 
 Review comment:
   \<p>Returns a string from \<i>STRING1\</i> with all the substrings that 
match a regular expression \<i>STRING2\</i> being replaced with 
\<i>STRING3\</i>.\</p> 

----------------------------------------------------------------
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:
us...@infra.apache.org


> Add regexp_replace supported in TableAPI and SQL
> ------------------------------------------------
>
>                 Key: FLINK-9991
>                 URL: https://issues.apache.org/jira/browse/FLINK-9991
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API &amp; SQL
>            Reporter: vinoyang
>            Assignee: vinoyang
>            Priority: Minor
>              Labels: pull-request-available
>
> regexp_replace is a very userful function to process String. 
>  For example :
> {code:java}
> regexp_replace("foobar", "oo|ar", "") //returns 'fb.'
> {code}
> It is supported as a UDF in Hive, more details please see[1].
> [1]: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to