rami-lv opened a new issue, #39229:
URL: https://github.com/apache/arrow/issues/39229

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I am unable to use `compute.binary_replace_slice` to transform a column in a 
batch of a dataset. 
   
   Other functions with the same signature work just fine, for example 
`binary_join`  
   
   To illustrate the bug 
   
   ```py
   
   import pyarrow as pa
   import pyarrow.compute as pc
   import pyarrow.dataset as ds
   
   data = {
       "id": ["id1", "id2"],
       "video-formats": [["v11", "v12", "v12"], []],
   }
   table = pa.table(
       {
           "id": pa.array(data["id"]),
           "video-formats": pa.array(data["video-formats"]),
       }
   )
   
   
   dataset = ds.dataset(table)
   for b in dataset.to_batches(batch_size=2):
       for a in pc.binary_join(b["video-formats"], "#"): # this work 
           print(a)
   
   dataset = ds.dataset(table)
   for b in dataset.to_batches(batch_size=2):
       for a in pc.binary_replace_slice(b["video-formats"], 0, 1, "#"): # this 
does not work 
           print(a)
   
   
   ```
   
   ### Component(s)
   
   Python


-- 
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]

Reply via email to