[ https://issues.apache.org/jira/browse/FLINK-35864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867725#comment-17867725 ]
Dylan He edited comment on FLINK-35864 at 8/2/24 7:22 AM: ---------------------------------------------------------- The original Hive implementation of CONV is kind of weird when toBase < 0, I have made some adjustments about it in PR, but further discussion is still needed. [SPARK-48979|https://issues.apache.org/jira/browse/SPARK-48979] was (Author: JIRAUSER305836): The original Hive implementation of CONV is kind of weird when toBase < 0, I have made some adjustments about it in PR, but further discussion is still needed. > Add CONV function > ----------------- > > Key: FLINK-35864 > URL: https://issues.apache.org/jira/browse/FLINK-35864 > Project: Flink > Issue Type: Sub-task > Components: Table SQL / API > Reporter: Dylan He > Assignee: Dylan He > Priority: Major > Labels: pull-request-available > > Add CONV function as the same in Hive & Spark & MySQL. > ---- > Converts {{num}} from {{fromBase}} to {{toBase}}. > Syntax: > {code:SQL} > CONV(num, fromBase, toBase) > {code} > Arguments: > * {{num}}: An INTEGER or STRING expression. > * {{fromBase}}: An INTEGER expression. > * {{toBase}}: An INTEGER expression. > Returns: > A STRING. > See also: > * > [Hive|https://cwiki.apache.org/confluence/display/Hive/Hive+UDFs#HiveUDFs-MathematicalFunctions] > * > [Spark|https://spark.apache.org/docs/3.5.1/sql-ref-functions-builtin.html#conversion-functions] > * > [Databricks|https://docs.databricks.com/en/sql/language-manual/functions/conv.html] > * > [MySQL|https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html#function_conv] -- This message was sent by Atlassian Jira (v8.20.10#820010)