Skip to content

[Vectorized][Feature] support function conv #7692

Closed

Description

@BiteTheDDDDt

Search before asking

  • I had searched in the issues and found no similar issues.

Description

support function conv

Use case

MySQL [ssb]> select conv('b',16,10);
+-------------------+
| conv('b', 16, 10) |
+-------------------+
| 11                |
+-------------------+
1 row in set (0.017 sec)

MySQL [ssb]> select conv(9,16,10);
+-----------------+
| conv(9, 16, 10) |
+-----------------+
| 9               |
+-----------------+
1 row in set (0.014 sec)

MySQL [ssb]> select conv(9,10,2);
+----------------+
| conv(9, 10, 2) |
+----------------+
| 1001           |
+----------------+
1 row in set (0.017 sec)

Related issues

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. wangbo commented on Jan 12, 2022

    @wangbo
    Contributor

    Can you add a document?
    I still don't know what is this thing used for after see your user case.

  2. BiteTheDDDDt commented on Jan 12, 2022

    @BiteTheDDDDt
    ContributorAuthor

    Can you add a document? I still don't know what is this thing used for after see your user case.

    Ok, I will add a document.
    conv is a function what can converts numbers between different number bases.
    https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html#function_conv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions