Re: [RUST] Use of Panics

2024-12-18 Thread Antoine Pitrou
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 2

[RUST] Use of Panics

2024-12-17 Thread Micah Kornfield
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