liukun4515 commented on code in PR #2650:
URL: https://github.com/apache/arrow-rs/pull/2650#discussion_r963761779
##########
arrow/src/compute/kernels/arity.rs:
##########
@@ -83,6 +84,41 @@ where
PrimitiveArray::<O>::from(data)
}
+/// A overflow-checking variant of `unary`.
+pub(crate) fn unary_checked<I, F, O>(
Review Comment:
Sorry for the confused comments for your PR.
In the pr https://github.com/apache/arrow-rs/pull/2661, the refactor also
need a function which can convert the
`primitivearray` to `result< primitivearray>`
I think the `unary_checked` or `try_unary` can be used like `unary` where
the result need to be `Result`.
--
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]