jackwener edited a comment on issue #1390: URL: https://github.com/apache/arrow-rs/issues/1390#issuecomment-1059967732
I reproduce it successfully. Error case ```rust #[test] fn test() { let schema = Schema::new(vec![Field::new("a", DataType::FixedSizeBinary(32), false)]); let none_option: Option<[u8; 2]> = None; let item = FixedSizeBinaryArray::try_from_sparse_iter( vec![none_option, none_option, none_option].into_iter(), ) .unwrap(); let rb = RecordBatch::try_new(Arc::new(schema), vec![Arc::new(item)]).unwrap(); } ``` correct example ```rust #[test] fn test() { let schema = Schema::new(vec![Field::new("a", DataType::FixedSizeBinary(2), false)]); let item = FixedSizeBinaryArray::try_from_sparse_iter( vec![ None, Some(vec![7, 8]), Some(vec![9, 10]), None, Some(vec![13, 14]), ] .into_iter(), ) .unwrap(); let rb = RecordBatch::try_new(Arc::new(schema), vec![Arc::new(item)]).unwrap(); } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org