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++] Regression with compute utf8_*trim
functions on macOS.
#29176
Comments
Antoine Pitrou / @pitrou: >>> import pyarrow as pa, pyarrow.compute as pc
>>> arr = pa.array(["ab", "ac"])
>>> pc.utf8_ltrim(arr, characters="a").to_pylist()
['b', 'c']
>>> pc.utf8_rtrim(arr, characters="b").to_pylist()
['a', 'ac'] Are you expecting something else? |
Antoine Pitrou / @pitrou: 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"
] |
Joris Van den Bossche / @jorisvandenbossche: |
Antoine Pitrou / @pitrou: |
Antoine Pitrou / @pitrou: |
Antoine Pitrou / @pitrou: https://arrow.apache.org/docs/python/install.html#installing-nightly-packages |
Antoine Pitrou / @pitrou: |
Seems to go awry after the first match.
Environment: macOS 11.5
Reporter: A. Coady / @coady
Assignee: Antoine Pitrou / @pitrou
PRs and other links:
Note: This issue was originally created as ARROW-13522. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: