[
https://issues.apache.org/jira/browse/FLINK-35864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867725#comment-17867725
]
Dylan He commented on FLINK-35864:
----------------------------------
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)