-
Notifications
You must be signed in to change notification settings - Fork 32
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
Array2: Struct Array #217
Array2: Struct Array #217
Conversation
vortex-array/src/ptype.rs
Outdated
use vortex_error::{vortex_err, VortexError, VortexResult}; | ||
use vortex_schema::DType::*; | ||
use vortex_schema::{DType, FloatWidth, IntWidth}; | ||
|
||
use crate::scalar::{PScalar, Scalar}; | ||
|
||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] |
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.
you should kill the custom ptype serde?
fn accept(&self, visitor: &mut dyn ArrayVisitor) -> VortexResult<()>; | ||
} | ||
|
||
// TODO(ngates): maybe we make this more like the inverse of TryFromParts? |
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 tihnk we should? It's easier to pattern match then
total_size: usize, | ||
} | ||
|
||
/// TODO(ngates): I think we want to go back to the old explicit style. It gives arrays more |
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 could have this as a default impl?
TODO: