Eventual-Inc / Daft

Distributed data engine for Python/SQL designed for the cloud, powered by Rust
https://getdaft.io
Apache License 2.0
2.35k stars 166 forks source link

flatten nested error messages/better error handling #3286

Open universalmind303 opened 1 week ago

universalmind303 commented 1 week ago

Is your feature request related to a problem?

A lot of times errors will come through unnecessarily nested.

ex: Daft error: DaftError::External Unable to create logical plan node. Due to: DaftError::ValueError Attempting to make a Schema with duplicate field names: count

Describe the solution you'd like

I'd prefer if the unrelevant parts were removed

Unable to create logical plan node. Due to: DaftError::ValueError Attempting to make a Schema with duplicate field names: count

Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement a fix?

No