-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-28893][table] Add built-in conv function. #20544
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
Conversation
eba4c9d to
5cf2143
Compare
df95134 to
f81848c
Compare
f81848c to
8279928
Compare
| return null; | ||
| } | ||
| byte[] bytes = | ||
| BaseConversionUtils.conv( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please clarify why BaseConversionUtils is required and e.g. java.lang.Long#toString(long, int) is not sutable here?
| null, | ||
| STRING().nullable())) | ||
|
|
||
| // fromBase cannot be negative. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is also mentioned that min base is 2 and max is 36
it would be great to see tests for such cases when base is 1 or 37 e.g.
|
Thanks for the contribution |
What is the purpose of the change
Add built-in conv function.