Skip to content

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

@jdye64

Description

@jdye64

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

Metadata

Metadata

Assignees

Labels

datafusionRelated to work in DataFusion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions