Describe the bug
Not all Array validate the DataType of the ArrayData they are being created from, which can potentially lead to unsound behaviour
To Reproduce
This should panic
#[test]
fn test_primitive_validation() {
let foo = PrimitiveArray::<Int32Type>::from_iter([1, 2, 3]);
PrimitiveArray::<Int64Type>::from(foo.into_data());
}
Expected behavior
All arrays should verify the type is as expected
Additional context
Describe the bug
Not all
Arrayvalidate theDataTypeof theArrayDatathey are being created from, which can potentially lead to unsound behaviourTo Reproduce
This should panic
Expected behavior
All arrays should verify the type is as expected
Additional context