[ https://issues.apache.org/jira/browse/FLINK-9915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16558579#comment-16558579 ]
ASF GitHub Bot commented on FLINK-9915: --------------------------------------- xccui commented on a change in pull request #6390: [FLINK-9915] Add TO_BASE64 function for table/sql API URL: https://github.com/apache/flink/pull/6390#discussion_r205522776 ########## File path: docs/dev/table/tableApi.md ########## @@ -2474,17 +2474,30 @@ STRING.rpad(len INT, pad STRING) <p>Returns a string right-padded with the given pad string to a length of len characters. If the string is longer than len, the return value is shortened to len characters. E.g. "hi".rpad(4, '??') returns "hi??", "hi".rpad(1, '??') returns "h".</p> </td> </tr> + <tr> <td> {% highlight java %} STRING.fromBase64() {% endhighlight %} </td> - + <td> <p>Returns the base string decoded with base64, if string is null, returns null. E.g. "aGVsbG8gd29ybGQ=".fromBase64() returns "hello world".</p> </td> </tr> + + <tr> + <td> + {% highlight java %} +STRING.toBase64() +{% endhighlight %} + </td> + + <td> + <p>Returns the string text encoded with BASE64. E.g. "hello world".toBase64() returns "aGVsbG8gd29ybGQ=".</p> Review comment: Returns the base64-encoded result of STRING. If STRING is NULL, returns NULL. ---------------------------------------------------------------- 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 TO_BASE64 function for table/sql API > ---------------------------------------- > > Key: FLINK-9915 > URL: https://issues.apache.org/jira/browse/FLINK-9915 > Project: Flink > Issue Type: New Feature > Components: Table API & SQL > Reporter: vinoyang > Assignee: vinoyang > Priority: Minor > Labels: pull-request-available > > refer to mysql TO_BASE64 function : > https://dev.mysql.com/doc/refman/5.6/en/string-functions.html#function_to-base64 -- This message was sent by Atlassian JIRA (v7.6.3#76005)