Skip to content

Why not serde #78

Answered by ncpenke
Tudyx asked this question in Q&A
Oct 15, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Thanks for the question @Tudyx. I'm a huge fan of serde and we had a longer section dedicated to this in the README. I'll look to add that back.

The two main goals of this crate are:

  1. Map rust types to arrow2 schema at compile-time.
  2. Provide a straight forward mechanism to perform this conversion.

For 1, if we use serde, we either need to infer the schema in a separate pass, which this crate does. Or we need to infer it while performing the operation. For deserialization, we could do this (and inferring the schema is already something arrow2 already does for formats like JSON btw). For serialization, we would need an alternate mechanism to specify the desired schema.

For this crate, we wa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tudyx
Comment options

Answer selected by Tudyx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants