rok commented on issue #48003:
URL: https://github.com/apache/arrow/issues/48003#issuecomment-3542611337

   Right, I was missing a cast or two, here's how I'd express the multiply 
kernel with pyarrow:
   
   ```python
   import pyarrow as pa
   from pyarrow import compute as pc
   unit = "ms"
   a = pa.array([2], pa.duration(unit))
   b = pa.array([3.7], pa.float64())
   c = pc.multiply(a.cast(pa.int64()), b)
   result = pc.round_to_multiple(c, 1).cast(pa.int64()).cast(pa.duration(unit))
   ```
   
   Question is - should we have a kernel that does all of this in c++ or not. 
And if yes, should it be under `multiply` or be called something else.


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