-
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
Deprecate Array::data_ref (#3880) #3923
Conversation
.validate_decimal_precision(array.precision()) | ||
.unwrap_err(); | ||
|
||
let array = Decimal128Array::from(vec![123456_i128]); |
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.
This test dates from before decimals were just a PrimitiveArray - we've come a long way in terms of ergonomics 😅
2801ce8
to
12ee185
Compare
12ee185
to
71be2e7
Compare
@@ -3502,14 +3495,13 @@ where | |||
|
|||
// wrap up | |||
let builder = ArrayData::builder(out_dtype) | |||
.offset(array.offset()) |
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.
Unlike before using value_offsets takes into account any offset
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 love this PR -- the reduction of unsafe is really nice!
@@ -3484,14 +3484,7 @@ where | |||
_ => unreachable!(), | |||
}; | |||
|
|||
// Safety: |
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.
🎉
Which issue does this PR close?
Part of #3880
Rationale for this change
Continues the process of gradually removing the need for arrays to store
ArrayData
directlyWhat changes are included in this PR?
Are there any user-facing changes?