This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new e40bc91  add unit test to check all none (#1405)
e40bc91 is described below

commit e40bc919b0f4c90b8a50416e16ccd5b132435d91
Author: jakevin <[email protected]>
AuthorDate: Tue Mar 8 05:29:59 2022 +0800

    add unit test to check all none (#1405)
---
 arrow/src/array/array_binary.rs | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arrow/src/array/array_binary.rs b/arrow/src/array/array_binary.rs
index d9118dd..e35133e 100644
--- a/arrow/src/array/array_binary.rs
+++ b/arrow/src/array/array_binary.rs
@@ -1689,6 +1689,16 @@ mod tests {
     }
 
     #[test]
+    fn test_all_none_fixed_size_binary_array_from_sparse_iter() {
+        let none_option: Option<[u8; 32]> = None;
+        let input_arg = vec![none_option, none_option, none_option];
+        let arr =
+            
FixedSizeBinaryArray::try_from_sparse_iter(input_arg.into_iter()).unwrap();
+        assert_eq!(0, arr.value_length());
+        assert_eq!(3, arr.len())
+    }
+
+    #[test]
     fn test_fixed_size_binary_array_from_sparse_iter() {
         let input_arg = vec![
             None,

Reply via email to