Skip to content
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

Merged
merged 15 commits into from
Apr 8, 2024
Merged

Array2: Struct Array #217

merged 15 commits into from
Apr 8, 2024

Conversation

gatesn
Copy link
Contributor

@gatesn gatesn commented Apr 8, 2024

TODO:

  • Make array children non-optional, shove validity on the end?

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))]
Copy link
Member

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?
Copy link
Member

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
Copy link
Member

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?

@gatesn gatesn marked this pull request as ready for review April 8, 2024 21:48
@gatesn gatesn merged commit 964d852 into develop Apr 8, 2024
2 checks passed
@gatesn gatesn deleted the ngates/flight branch April 8, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants