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 2018/08/03 20:54:00 UTC

[jira] [Commented] (FLINK-9853) add hex support in table api and sql

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

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

walterddr commented on a change in pull request #6337: [FLINK-9853] [table] Add HEX support 
URL: https://github.com/apache/flink/pull/6337#discussion_r207661800
 
 

 ##########
 File path: docs/dev/table/tableApi.md
 ##########
 @@ -2322,6 +2322,17 @@ NUMERIC.bin()
     </td>
    </tr>
     
+    <tr>
+     <td>
+       {% highlight java %}
+NUMERIC.hex()
+STRING.hex()
+{% endhighlight %}
+     </td>
+    <td>
+      <p>Returns a string representation of an integer numeric value or a string in hex format. Returns null if numeric is null. E.g. "20" leads to "14", "100" leads to "64", "hello,world" leads to "68656c6c6f2c776f726c64".</p>
 
 Review comment:
   same here.

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


> add hex support in table api and sql
> ------------------------------------
>
>                 Key: FLINK-9853
>                 URL: https://issues.apache.org/jira/browse/FLINK-9853
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table API &amp; SQL
>            Reporter: xueyu
>            Priority: Major
>              Labels: pull-request-available
>
> like in mysql, HEX could take int or string arguments, For a integer argument N, it returns a hexadecimal string representation of the value of N. For a string argument str, it returns a hexadecimal string representation of str where each byte of each character in str is converted to two hexadecimal digits. 
> Syntax:
> HEX(100) = 64
> HEX('This is a test String.') = '546869732069732061207465737420537472696e672e'
> See more: [link MySQL|https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_hex]



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