Describe the bug
see these tests
#[test]
fn test_list_view_child_not_nullable() {
let field = Arc::new(Field::new("item", DataType::Int32, false));
let data_type = DataType::ListView(field);
let schema = Arc::new(Schema::new(vec![Field::new("a", data_type, true)]));
let json = r#"
{"a": [1, 2, 3]}
{"a": [4, null]}
{"a": null}
{"a": [6]}
{"a": []}
"#;
let _ = do_read(json, 1024, false, false, schema);
}
#[test]
fn test_run_end_child_not_nullable() {
let run_end = Arc::new(Field::new("run_end", DataType::Int16, false));
let value = Arc::new(Field::new("value", DataType::Int32, false));
let data_type = DataType::RunEndEncoded(run_end, value);
let schema = Arc::new(Schema::new(vec![Field::new("a", data_type, true)]));
let json = r#"
{"a": 1}
{"a": 1}
{"a": null}
{"a": 2}
"#;
let _ = do_read(json, 1024, false, false, schema);
}
they should both fail since we are reading nulls into their child arrays, however they are currently succeeding
similar to #6391
To Reproduce
No response
Expected behavior
No response
Additional context
No response
Describe the bug
see these tests
they should both fail since we are reading nulls into their child arrays, however they are currently succeeding
similar to #6391
To Reproduce
No response
Expected behavior
No response
Additional context
No response