-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: Implement serde for Null columns #17218
Conversation
let mut state = serializer.serialize_map(Some(3))?; | ||
state.serialize_entry("name", self.name())?; | ||
state.serialize_entry("datatype", self.dtype())?; | ||
state.serialize_entry("values", &IterSer::new(std::iter::once(self.len())))?; |
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.
It feels slightly hacky to encode the length under "values", but hey... it works!
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.
Luckily we don't serialize to human readable anymore. 😉
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17218 +/- ##
==========================================
+ Coverage 80.81% 80.83% +0.01%
==========================================
Files 1466 1466
Lines 192229 192249 +20
Branches 2745 2745
==========================================
+ Hits 155355 155403 +48
+ Misses 36371 36343 -28
Partials 503 503 ☔ View full report in Codecov by Sentry. |
This was previously unimplemented, which led to a panic. Now it works!