flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] hequn8128 commented on a change in pull request #6432: [FLINK-9970] Add ASCII/CHR function for table/sql API
Date Sat, 28 Jul 2018 04:45:03 GMT
hequn8128 commented on a change in pull request #6432: [FLINK-9970] Add ASCII/CHR function
for table/sql API
URL: https://github.com/apache/flink/pull/6432#discussion_r205932661
 
 

 ##########
 File path: docs/dev/table/sql.md
 ##########
 @@ -1850,6 +1860,17 @@ FROM_BASE64(text string)
       </td>
     </tr>
 
+    <tr>
+      <td>
+        {% highlight text %}
+CHR(ascii integer)
+{% endhighlight %}
+      </td>
+      <td>
+        <p>Returns string contains a character which converts from a ASCII integer.
If the ASCII less then 0 or greater than 255, return null. E.g. <code>CHR(65)</code>
returns <code>A</code>, <code>CHR(97)</code> returns <code>a</code>.</p>
 
 Review comment:
   1. Returns string contains a character which converts from a ASCII integer. =>  Returns
the character corresponding to the input ASCII integer.
   2. If the ASCII => If the ASCII code
   3. return null. => returns null.
   4. returns <code>a</code> => returns <code>'a'</code>

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


With regards,
Apache Git Services

Mime
View raw message