From a77699abec6e73fe12b3f27958c3583ffc971ce6 Mon Sep 17 00:00:00 2001 From: aiglematth Date: Tue, 20 Jul 2021 13:25:05 +0200 Subject: [PATCH] Update triplet.rs (#556) Update triplet.rs to support REPEATED field with null value at one time --- parquet/src/record/triplet.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parquet/src/record/triplet.rs b/parquet/src/record/triplet.rs index bb4f942fd18a..e8eeccbae2cd 100644 --- a/parquet/src/record/triplet.rs +++ b/parquet/src/record/triplet.rs @@ -136,7 +136,9 @@ impl TripletIter { /// Updates non-null value for current row. pub fn current_value(&self) -> Field { - assert!(!self.is_null(), "Value is null"); + if self.is_null() { + return Field::Null; + } match *self { TripletIter::BoolTripletIter(ref typed) => { Field::convert_bool(typed.column_descr(), *typed.current_value())