Hi,

I'm not a Rust user, but I would expect invalid input files to return
regular errors, not panic. Unlike API usage errors, invalid input files
are not a bug in the calling code.

This is also much nicer for bindings in high-level languages such as
Python.

Regards

Antoine.


On Tue, 17 Dec 2024 21:06:12 -0800
Micah Kornfield <emkornfi...@gmail.com> wrote:
> Hi Rust Arrow Devs,
> We are having a conversation [1] on use of panics in Rust (when is it
> appropriate, are there any rubrics for converting panics to errors, etc).
> Feedback welcome.
> 
> For reference this came up in the context of handling malformed parquet
> data.
> 
> Thanks,
> Micah
> 
> [1] https://github.com/apache/arrow-rs/issues/6737
> 



Reply via email to