[
https://issues.apache.org/jira/browse/FLINK-28893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flink Jira Bot updated FLINK-28893:
-----------------------------------
Labels: pull-request-available stale-assigned (was: pull-request-available)
I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help
the community manage its development. I see this issue is assigned but has not
received an update in 30 days, so it has been labeled "stale-assigned".
If you are still working on the issue, please remove the label and add a
comment updating the community on your progress. If this issue is waiting on
feedback, please consider this a reminder to the committer/reviewer. Flink is a
very active project, and so we appreciate your patience.
If you are no longer working on the issue, please unassign yourself so someone
else may work on it.
> Add conv function supported in SQL & Table API
> ----------------------------------------------
>
> Key: FLINK-28893
> URL: https://issues.apache.org/jira/browse/FLINK-28893
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / API
> Affects Versions: 1.17.0
> Reporter: Jacky Lau
> Assignee: Jacky Lau
> Priority: Major
> Labels: pull-request-available, stale-assigned
> Fix For: 1.18.0
>
>
> Returns true if {{array}} contains {{{}value{}}}.
> Syntax:
> {code:java}
> conv(number, fromBase, toBase) {code}
> Arguments:
> * number: INTEGER_NUMERIC or CHARACTER_STRING family.
> * fromBase: INTEGER_NUMERIC family.
> * toBase: INTEGER_NUMERIC family.
> Returns:
> Converts numbers between different number bases. Returns a string
> representation of the number {_}{{N}}{_}, converted from base _{{from_base}}_
> to base {_}{{to_base}}{_}. Returns {{NULL}} if any argument is {{{}NULL{}}}.
> The argument _{{N}}_ is interpreted as an integer, but may be specified as an
> integer or a string. The minimum base is {{2}} and the maximum base is
> {{{}36{}}}. If _{{from_base}}_ is a negative number, _{{N}}_ is regarded as a
> signed number. Otherwise, _{{N}}_ is treated as unsigned.
> [{{CONV()}}|https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html#function_conv]
> works with 64-bit precision.
> Examples:
> {code:java}
> > SELECT CONV(100, 10, -8);
> "144"
> > SELECT CONV(1111, 2, 10);
> "15"
> > SELECT CONV(100, 2, NULL);
> NULL {code}
> See more:
> * pg:
> [https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html#function_conv]
> * mariadb: [https://mariadb.com/kb/en/conv/]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)