Skip to content

Commit

Permalink
Set allow_null_fields to true in tracing options
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreenbury committed Oct 5, 2023
1 parent bb2de9b commit 92f2b52
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/writers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ where
V: Serialize,
{
fn write_parquet(&self, output: &str) -> Result<()> {
let fields = serialize_into_fields(self, TracingOptions::default())?;
let fields = serialize_into_fields(
self,
TracingOptions {
allow_null_fields: true,
..Default::default()
},
)?;
let arrays = serialize_into_arrays(&fields, self)?;
write_chunk(output, Schema::from(fields), Chunk::new(arrays))?;
Ok(())
Expand Down

0 comments on commit 92f2b52

Please sign in to comment.