neilconway opened a new issue, #10659:
URL: https://github.com/apache/arrow-rs/issues/10659
### Describe the bug
`set_write_batch_size` allows the write batch size to be set to zero. If
that is done, ArrowWriter will fall into an infinite loop and fail to make
progress.
### To Reproduce
```rust
let props = WriterProperties::builder().set_write_batch_size(0).build();
let mut writer = ArrowWriter::try_new(&mut buf, batch.schema(),
Some(props))?;
writer.write(&batch)?; // never returns
```
### Expected behavior
A write batch size of zero is not sensible and should be rejected.
### Additional context
_No response_
--
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]