dask-sql icon indicating copy to clipboard operation
dask-sql copied to clipboard

[DF] Wrap Dask-SQL python exception in Rust with pyo3

Open jdye64 opened this issue 2 years ago • 0 comments

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

jdye64 avatar Apr 20 '22 16:04 jdye64