Skip to content

Commit

Permalink
Update triplet.rs (#556) (#574)
Browse files Browse the repository at this point in the history
Update triplet.rs to support REPEATED field with null value at one time

Co-authored-by: aiglematth <aiglematth@protonmail.com>
  • Loading branch information
alamb and aiglematth authored Jul 21, 2021
1 parent c87a7bc commit 9dd0aec
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 9dd0aec

Please sign in to comment.