thisisnic commented on issue #39229: URL: https://github.com/apache/arrow/issues/39229#issuecomment-7186023924
Thanks for reporting this! I'm going through older bug issues to see if we can close them out. The two functions take different inputs. `binary_join` is defined on a list of strings, which it joins into one string per row. `binary_replace_slice` is defined on strings (or binary), not on lists of them, so passing a `list<string>` column raises "no kernel matching input types". To apply it to each string inside the lists, run it on the list's values and rebuild the list: ```python col = b["video-formats"] pa.ListArray.from_arrays(col.offsets, pc.binary_replace_slice(col.values, 0, 1, "#")) ``` Checked on 26.0.1 with the data above: this gives `[['#11', '#12', '#12'], []]`, including when applied per batch. (Rows where the list itself is null would need the validity carried over separately.) Closing as not a bug. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
