HaoYang670 opened a new issue, #2721: URL: https://github.com/apache/arrow-rs/issues/2721
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** We've seen somewhere in the code that there are duplicate length checking because `binary` panics on unequaled length: https://github.com/apache/arrow-rs/blob/master/arrow/src/compute/kernels/arithmetic.rs#L60-L77 https://github.com/apache/arrow-rs/blob/master/arrow/src/compute/kernels/arity.rs#L188 **Describe the solution you'd like** 1. It is bettter to let the result type of `binary` be `Result` and return an error when arrays have different length. 2. We should also update the docs to comment when the function will return an error or panic **Describe alternatives you've considered** We could not do this. **Additional context** <!-- Add any other context or screenshots about the feature request here. --> -- 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]
