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

[C++][Gandiva] Implement LPAD and RPAD functions for string input values #28326

Closed
asfimport opened this issue Apr 27, 2021 · 1 comment
Closed

Comments

@asfimport
Copy link
Collaborator

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)

    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.

Reporter: João Pedro Antunes Ferreira / @jpedroantunes
Assignee: João Pedro Antunes Ferreira / @jpedroantunes

PRs and other links:

Note: This issue was originally created as ARROW-12567. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Praveen Kumar / @praveenbingo:
Issue resolved by pull request 10173
#10173

@asfimport asfimport added this to the 5.0.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant