Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

built-in-function: Support char(int) function #817

Closed
4 tasks
jingchen2222 opened this issue Dec 1, 2021 · 1 comment · Fixed by #1896
Closed
4 tasks

built-in-function: Support char(int) function #817

jingchen2222 opened this issue Dec 1, 2021 · 1 comment · Fixed by #1896
Assignees
Labels

Comments

@jingchen2222
Copy link
Collaborator

jingchen2222 commented Dec 1, 2021

Is your feature request related to a problem? Please describe.

char(expr)
Returns the ASCII character having the binary equivalent to expr. If n is larger than 256 the result is equivalent to chr(n % 256)

Examples:

> SELECT char(65);
 A

Reference:

https://spark.apache.org/docs/2.3.0/api/sql/#char

Describe the solution you'd like

We do provide a built-in function development guide for you.
Please check OpenMLDB Build-In Function Develop Guide or the Chinese version for help.

Please make sure you:

  • Add built-in C++ function in src/udf/udf.h and src/udf/udf.cc
  • Register function to default library from function void DefaultUdfLibrary::IniStringUdf() in src/udf/default_udf_library.cc.
  • Add related unit test in src/codegen/udf_ir_builder_test.cc
  • Documenting function

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@jingchen2222 jingchen2222 added enhancement New feature or request good first issue Good for newcomers labels Dec 1, 2021
@lumianph lumianph added call-for-contributions execute-engine hybridse sql engine and removed enhancement New feature or request good first issue Good for newcomers labels Apr 21, 2022
@Ivyee17
Copy link
Contributor

Ivyee17 commented May 25, 2022

I want to help this, plz assign it to me. WeOpen Star. @lumianph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants