-
Notifications
You must be signed in to change notification settings - Fork 841
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
Rework Strongly Typed ArrayData Abstractions #3877
Conversation
/// 2: the values | ||
/// | ||
/// We store an array so that a slice can be returned in [`RunArrayData::layout`] | ||
children: Box<[ArrayData; 2]>, |
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.
We no longer need this hack 🎉
/// ArrayData for [dictionary arrays](https://arrow.apache.org/docs/format/Columnar.html#dictionary-encoded-layout) | ||
#[derive(Debug, Clone)] | ||
pub struct DictionaryArrayData<K: DictionaryKey> { | ||
data_type: DataType, | ||
nulls: Option<NullBuffer>, | ||
keys: ScalarBuffer<K>, | ||
values: Box<ArrayData>, | ||
values: ArrayData, |
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.
We no longer need to Box children, as not intending to use within an ArrayData enumeration
Realised these need to check the DataType when converting from ArrayData, will fix tomorrow |
6fb8c36
to
805f527
Compare
Thinking about this a bit more, it is unclear what value add these abstractions have over the existing arrays... There may be more simplification possible... 🤔 |
Closing in favor of #3880 |
Which issue does this PR close?
Part of #1799
Rationale for this change
See #1799 (comment)
In particular:
from_raw
toFrom<ArrayData>
layout
toFrom<_> for ArrayData
ArrayDataLayout
What changes are included in this PR?
Are there any user-facing changes?