[
https://issues.apache.org/jira/browse/ARROW-13522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17391728#comment-17391728
]
Antoine Pitrou commented on ARROW-13522:
----------------------------------------
Ok, it does seem to be completely broken on MacOS :-(
{code:python}
In [1]: import pyarrow as pa
In [2]: import pyarrow.compute as pc
In [3]: arr = pa.array(["ab", "ac"])
In [5]: pc.utf8_ltrim(arr, characters="a")
Out[5]:
<pyarrow.lib.StringArray object at 0x7fc9d08b3b40>
[
"",
""
]
In [10]: pc.utf8_rtrim(arr, characters="b")
Out[10]:
<pyarrow.lib.StringArray object at 0x7fc9d06bbb40>
[
"a",
"a"
]
{code}
> Regression with compute `utf8_*trim` functions on macOS.
> --------------------------------------------------------
>
> Key: ARROW-13522
> URL: https://issues.apache.org/jira/browse/ARROW-13522
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, Python
> Affects Versions: 5.0.0
> Environment: macOS 11.5
> Reporter: A. Coady
> Priority: Major
>
> {code:python}
> import pyarrow as pa
> import pyarrow.compute as pc
> arr = pa.array(["ab", "ac"])
> r = pc.utf8_ltrim(arr, characters="a")
> assert r.to_pylist() == ["b", "c"], r
> r = pc.utf8_rtrim(arr, characters="b")
> assert r.to_pylist() == ["a", "ac"], r
> {code}
> Seems to go awry after the first match.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)