viirya commented on issue #390:
URL: https://github.com/apache/arrow-rs/issues/390#issuecomment-1373134249
I think it is due to a bug in your test code:
```rust
let batch = RecordBatch::try_new(
Arc::new(Schema::new(vec![Field::new("a", DataType::UInt32, true)])),
vec![Arc::new(array)],
).expect("new batch");
```
You build the batch using original array, not sliced array.
Once I change it to `sliced`, the test passes.
--
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]