-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Improve optimizer performance by not using Error
s in the happy path
#7552
Comments
Here is an example of using Errors in the happy path (aka ignoring an error rather than fixing the underlying issue) |
I wanna check that if no other volunteers |
I would also close this as a lot of job was done for planner to improve the performance |
@alamb I'm closing this, please feel free to reopen if needed |
I agree -- thanks for cleaning these up @comphead -- we can file new tickets if/when we have actionable changes to make |
Is your feature request related to a problem or challenge?
We have had a few issues / reports where the creation of
DataFusionError
during query planning has contributed significantly to the overall planning time. Specifically, #5309 and more recently #7522At the core of the issue is that creating a
DataFusionError
is a fairly slow operation (as it requires allocating a newString
to hold the error message, and sometimes, as in #5309, the construction of the message itself is significant.Describe the solution you'd like
I would like to update the DataFusion codebase so it does not use Errors on the "happy path"
Tasks:
is_err()
) #5309Describe alternatives you've considered
We could potentially make it faster / cheaper to create DataFusion errors
Additional context
No response
The text was updated successfully, but these errors were encountered: