Jefffrey opened a new issue, #9227: URL: https://github.com/apache/arrow-rs/issues/9227
**Describe the bug** <!-- A clear and concise description of what the bug is. --> Original DataFusion issue: - https://github.com/apache/datafusion/issues/19798 Looks like list with a nested list with child NullArray doesn't roundtrip properly, causing issues with row conversion. **To Reproduce** <!-- Steps to reproduce the behavior: --> ```rust // arrow-row/src/lib.rs #[test] fn test_nested_null_list() { let null_array = Arc::new(NullArray::new(1)); // [NULL] let nested_field = Arc::new(Field::new_list_field(DataType::Null, true)); let nested_list = Arc::new(ListArray::new( nested_field.clone(), OffsetBuffer::from_lengths(vec![1]), null_array, None, )); // [[NULL]] let list = Arc::new(ListArray::new( Field::new_list_field(DataType::List(nested_field), true).into(), OffsetBuffer::from_lengths(vec![1]), nested_list, None, )) as ArrayRef; let converter = RowConverter::new(vec![SortField::new(list.data_type().clone())]).unwrap(); let rows = converter.convert_columns(&[Arc::clone(&list)]).unwrap(); let back = converter.convert_rows(&rows).unwrap(); assert_eq!(&list, &back[0]); } ``` Failing with: ```bash ---- tests::test_nested_null_list stdout ---- thread 'tests::test_nested_null_list' (10193461) panicked at arrow-row/src/lib.rs:2965:9: assertion `left == right` failed left: ListArray [ ListArray [ NullArray(1), ], ] right: ListArray [ ListArray [ NullArray(0), ], ] ``` **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> Should roundtrip (which should also fix the issue downstream in DataFusion) **Additional context** <!-- Add any other context about the problem here. --> -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
