Skip to content

Improve optimizer performance by not using Errors in the happy path #7552

@alamb

Description

@alamb

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 #7522

At the core of the issue is that creating a DataFusionError is a fairly slow operation (as it requires allocating a new String 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:

Describe alternatives you've considered

We could potentially make it faster / cheaper to create DataFusion errors

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions