Dylan He created FLINK-35864:
--------------------------------

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


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)

Reply via email to