jpedroantunes opened a new pull request #10173:
URL: https://github.com/apache/arrow/pull/10173


   #### Implement LPAD and RPAD functions for string input values.
   
   - LPAD([string] basetext, [number] x, [optional string] padtext)
   - RPAD([string] basetext, [number] x, [optional string] padtext)
   
   #### Description
   
   lpad - Prepends padtext to basetext in a way that allows as many characters 
as possible from padtext given an output string length of x. When x is less 
than or equal to the length of basetext, only characters from basetext are 
printed in the output. If padtext is omitted then spaces are prepended.
   
   rpad - Appends padtext to basetext in a way that allows as many characters 
as possible from padtext given an output string length of x. When x is less 
than or equal to the length of basetext, only characters from basetext are 
printed in the output. If padtext is omitted then spaces are appended.


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to