dask-sql
dask-sql copied to clipboard
[DF] Wrap Dask-SQL python exception in Rust with pyo3
Is your feature request related to a problem? Please describe.
Currently when DataFusion encounters invalid SQL an Result with the Err field is generated on the Rust side. However to mimic existing functionality it would be better if we wrapped that result in an actual Python exception that can be caught on the Python side and handled appropriately.
Describe the solution you'd like
Wrap Result instances with Err field populated, an error, in a pyo3 PyException that can be sent back as an exception to the Python layer.
Describe alternatives you've considered None
Additional context None