Skip to content

Commit

Permalink
Update triplet.rs (#556)
Browse files Browse the repository at this point in the history
Update triplet.rs to support REPEATED field with null value at one time
  • Loading branch information
aiglematth authored Jul 20, 2021
1 parent ede81fc commit 03269aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parquet/src/record/triplet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 03269aa

Please sign in to comment.