You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eduardo Ponce / @edponce:
There are several variants of string repeats across languages:
Python, SQL - support a single integer value for number of repeats. All strings are replicated the same number of times.
Support a sequence of integers where each value is the number of repeats for the string corresponding to that same index. This may have its complexities in Arrow if operating on unordered batches of data.
Pandas, R - support (1) and (2).
R - allow different number of input strings and repeat values.
Below are examples of each languages API and supported variants for string repeat.
Based on this, I consider having the string repeat in Arrow C++ support case (3) and for the case (2) consider invalid if number of strings and number of repeats differ in length.
Activity
asfimport commentedon May 11, 2021
Joris Van den Bossche / @jorisvandenbossche:
Pandas also has this as a
repeatmethod (https://pandas.pydata.org/docs/reference/api/pandas.Series.str.repeat.html)asfimport commentedon Aug 29, 2021
Eduardo Ponce / @edponce:
There are several variants of string repeats across languages:
Below are examples of each languages API and supported variants for string repeat.
Based on this, I consider having the string repeat in Arrow C++ support case (3) and for the case (2) consider invalid if number of strings and number of repeats differ in length.
Python:
Pandas has str.repeat function:
SQL has replicate function:
R has strrep function:
asfimport commentedon Nov 4, 2021
David Li / @lidavidm:
Issue resolved by pull request 11023
#11023