You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by "Zkplo (via GitHub)" <gi...@apache.org> on 2024/08/28 03:18:18 UTC
[I] [Feature][SDK] Transform supports padding of left and right strings [inlong]
Zkplo opened a new issue, #10927:
URL: https://github.com/apache/inlong/issues/10927
### Description
- parent issue #10796
RPAD(s1,len,s2):Fill string s2 at the end of string s1 to make the length of the string len
LPAD(s1,len,s2):Fill string s2 at the beginning of string s1 to make the string length len
### Use case
```
RPAD('12',5,'34') -> "12343"
RPAD('1234',2,'5') -> "12"
RPAD('1',5,'') -> ""
RPAD(null,2,'34') or RPAD('12',null,'34') or RPAD('12',2,null) -> null
LPAD('12',5,'34') -> "34312"
LPAD('1234',2,'5') -> "12"
LPAD('1',5,'') -> ""
LPAD(null,2,'34') or LPAD('12',null,'34') or LPAD('12',2,null) -> null
```
### Are you willing to submit PR?
- [X] Yes, I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature][SDK] Transform supports padding of left and right strings [inlong]
Posted by "dockerzhang (via GitHub)" <gi...@apache.org>.
dockerzhang closed issue #10927: [Feature][SDK] Transform supports padding of left and right strings
URL: https://github.com/apache/inlong/issues/10927
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org