-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "Execution error: " prefix from error messages from Rust #293
Comments
DF still returns formatted messages, If we looking for sending the Comet message to the user without additional wrapping into |
Thanks @comphead. I think it would be good to add a method in DF that lets us get the underlying error string without a prefix. |
My naive approach was to fix the formatter and for some alignment case the prefix won't be added
But this solution looks incomplete to me as |
Filed apache/datafusion#10186 |
@andygrove we the proposed by @alamb approach we can do something like coded in https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4d0e0462ab6db7fa63e7791e941eea36 Notice |
Depends on DF 38.0.0 |
What is the problem the feature request solves?
We cannot exactly match Spark error messages in some cases because DataFusion is prefixing errors from Rust with "Execution error: ".
Because we are ultimately implementing traits from DataFusion, any
CometError
s we create get converted into DataFusion errors:In
errors.rs
we use thiserror for formatting errors and we delegate formatting to DataFusion forDataFusionError
:DataFusion adds an "Execution error: " prefix in its formatting:
Describe the potential solution
There seem to be two options:
Additional context
No response
The text was updated successfully, but these errors were encountered: