You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2021/07/21 13:24:52 UTC
[arrow-rs] branch active_release updated: Update triplet.rs (#556)
(#574)
This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch active_release
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/active_release by this push:
new 9dd0aec Update triplet.rs (#556) (#574)
9dd0aec is described below
commit 9dd0aec8f3d8d15ef59e13882cc317ce774b08ce
Author: Andrew Lamb <an...@nerdnetworks.org>
AuthorDate: Wed Jul 21 09:24:46 2021 -0400
Update triplet.rs (#556) (#574)
Update triplet.rs to support REPEATED field with null value at one time
Co-authored-by: aiglematth <ai...@protonmail.com>
---
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 bb4f942..e8eeccb 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())