JonSnow1807 opened a new pull request, #55460: URL: https://github.com/apache/arrow/pull/55460
### Rationale for this change There is no kernel for `multiply(duration, float64)` or `divide(duration, float64)`, so these calls raise NotImplemented (see #48003). ### What changes are included in this PR? Kernels for `multiply(duration, float64)`, `multiply(float64, duration)` and `divide(duration, float64)`, registered for `multiply`, `multiply_checked`, `divide` and `divide_checked`. The result keeps the duration’s unit and is rounded to the nearest integer, ties to even. NaN, overflow and division by zero return an error. Only float64 is handled; float32 and float16 are not cast. ### Are these changes tested? Yes, one new test in `scalar_temporal_test.cc` (rounding and ties, both argument orders, nulls, errors, all four time units). ### Are there any user-facing changes? Yes, these calls now return a duration instead of raising NotImplemented. ### Was AI used for this PR? In accordance with the [AI generation guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code), please disclose below whether and how AI was used in this PR. **PR code and description written by:** - [x] Human - [x] AI **Reviewed before submission by:** - [x] Human - [ ] AI - [ ] Not reviewed Code drafted by both human and AI, and reviewed by human. -- 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]
