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

Make serde optional and return VortexError #105

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Make serde optional and return VortexError #105

merged 1 commit into from
Mar 15, 2024

Conversation

gatesn
Copy link
Contributor

@gatesn gatesn commented Mar 15, 2024

  • Make array serde an optional feature
  • Make serde return VortexResult not io Result

@gatesn gatesn enabled auto-merge (squash) March 15, 2024 20:29
@gatesn gatesn requested a review from robert3005 March 15, 2024 21:03
fn serde(&self) -> &dyn ArraySerde {
self
fn serde(&self) -> Option<&dyn ArraySerde> {
Some(self)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is to check whether an array supports serde... should chunked array check that every chunk serde is Some(_)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(can be a FLUP)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, the implementation of serde can subsequently fail. This is just a way to maybe get an implementation at runtime

@gatesn gatesn merged commit 5366eff into develop Mar 15, 2024
1 check passed
@gatesn gatesn deleted the ngates/serde branch March 15, 2024 21:56
@robert3005
Copy link
Member

Why is serde optional? I thought you'd always can convert to another one and serialize that?

@gatesn
Copy link
Contributor Author

gatesn commented Mar 15, 2024

Some arrays may be used for lazy compute, e.g. a FilteredArray. Some may model non-vortex serialised arrays, e.g. if we implement a Parquet reader.

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.

3 participants