Skip to content

Optimize the break rule of optimizer passes. #4841

@HaoYang670

Description

@HaoYang670

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
https://github.com/apache/arrow-datafusion/blob/2db3d2eae9f4e51f01cb705677c8c231b43a6172/datafusion/optimizer/src/optimizer.rs#L312-L320

We don't need the string comparison anymore because we have had the try_optimize method in the OptimizerRule which returns None when the plan is not optimized.

Describe the solution you'd like
Simplify the above logic.

Describe alternatives you've considered
We could not do this if there is any reason.

Additional context
Add any other context or screenshots about the feature request here.

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