tustvold opened a new issue, #1595:
URL: https://github.com/apache/arrow-rs/issues/1595
**Describe the bug**
When filtering a UnionArray the output will only include the types that had
at least one value selected by the filter. I think this is a bug, as I would
not expect a filter to mutate the schema of the input
**Expected behavior**
This test should pass
```
let mut builder = UnionBuilder::new_dense(4);
builder.append::<Int32Type>("A", 1).unwrap();
builder.append::<Float64Type>("B", 3.2).unwrap();
let array = builder.build().unwrap();
let filter_array = BooleanArray::from(vec![true, false]);
let c = filter(&array, &filter_array).unwrap();
assert_eq!(array.data_type(), c.data_type())
```
--
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]