-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimize the numeric_cast_with_error
#2661
Conversation
arrow/src/compute/kernels/cast.rs
Outdated
.map(|v| match v { | ||
None => Ok(None), | ||
Some(value) => match num::cast::cast::<T::Native, R::Native>(value) { | ||
let iter = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after #2650 merged, we can use the try_unary
to replace below code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @viirya
3a570a3
to
9d60441
Compare
Benchmark runs are scheduled for baseline = 259a302 and contender = f56b573. f56b573 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
follow up of #2649
from the comment: #2649 (comment)
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?