From 92f2b520c73707fe381374eba9187374f4e242f1 Mon Sep 17 00:00:00 2001 From: Sam Greenbury Date: Thu, 5 Oct 2023 17:22:27 +0100 Subject: [PATCH] Set allow_null_fields to true in tracing options --- src/writers.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/writers.rs b/src/writers.rs index f652206..1ae2409 100644 --- a/src/writers.rs +++ b/src/writers.rs @@ -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(())