You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Praveen Kumar (Jira)" <ji...@apache.org> on 2021/06/07 10:34:00 UTC
[jira] [Resolved] (ARROW-12567) [C++][Gandiva] Implement LPAD and
RPAD functions for string input values
[ https://issues.apache.org/jira/browse/ARROW-12567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Praveen Kumar resolved ARROW-12567.
-----------------------------------
Fix Version/s: 5.0.0
Resolution: Fixed
Issue resolved by pull request 10173
[https://github.com/apache/arrow/pull/10173]
> [C++][Gandiva] Implement LPAD and RPAD functions for string input values
> ------------------------------------------------------------------------
>
> Key: ARROW-12567
> URL: https://issues.apache.org/jira/browse/ARROW-12567
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++ - Gandiva
> Reporter: João Pedro Antunes Ferreira
> Assignee: João Pedro Antunes Ferreira
> Priority: Minor
> Labels: pull-request-available
> Fix For: 5.0.0
>
> Time Spent: 4.5h
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)