Open sunchao opened 5 years ago
We have similar thing in record reader.
We have similar thing in record reader.
Hmm... you mean record/reader.rs
? I couldn't find anything related. This is on the encoding level though - so we'll need to add a new method in Encoder
and Decoder
.
How will you add it to the encoder or decoder? They don’t have information about null values - they encode or decode non null values.
If I am not mistaken - https://github.com/sunchao/parquet-rs/blob/master/src/record/triplet.rs#L310
Let me know if this is not what you had in mind, I will delete my comments.
In order to read into Arrow format, we need to add a
get_spaced
(borrowing from the c++ version) method in the decoder to leave spaces for null values, in the result value buffer. Same for encoders.Subtasks: