-
Notifications
You must be signed in to change notification settings - Fork 853
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
Revise FromIterator for Decimal128Array to use Into instead of Borrow #2442
Conversation
@@ -475,8 +473,8 @@ impl<Ptr: Into<Decimal256>> FromIterator<Option<Ptr>> for Decimal256Array { | |||
} | |||
} | |||
|
|||
impl<Ptr: Borrow<Option<i128>>> FromIterator<Ptr> for Decimal128Array { | |||
fn from_iter<I: IntoIterator<Item = Ptr>>(iter: I) -> Self { | |||
impl<Ptr: Into<i128>> FromIterator<Option<Ptr>> for Decimal128Array { |
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.
FWIW whilst here I wonder if we could do something similar to PrimitiveArray which has a NativeAdapter
to allow passing Option<T>
or T
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.
I think it is okay. We could add some adapter for FromIterator
for decimal arrays. I will do it in another PR.
Benchmark runs are scheduled for baseline = 5e8586a and contender = 3557428. 3557428 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?
Closes #2441.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?