tustvold opened a new issue, #1978:
URL: https://github.com/apache/arrow-rs/issues/1978
**Describe the bug**
PrimitiveBuilder::finish_dict does not validate that the provided values
array contains enough values for the largest key in the dictionary
**To Reproduce**
```
#[test]
fn test_primitive_array_builder_dict() {
let mut builder = Int32Array::builder(10);
builder.append_value(1).unwrap();
let values = Arc::new(Int32Array::from_iter_values([0]));
let dict = builder.finish_dict(values);
}
```
**Expected behavior**
It should not be possible to construct invalid ArrayData with safe APIs
--
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]