Skip to content

Unify generic expr rewrite functions into the datafusion_expr::expr_rewriter #6643

Description

@r4ntix

Is your feature request related to a problem or challenge?

I noticed that currently we have some generic expr rewrite funtions scattered in datafusion_expr::expr_rewriter and datafusion_optimizer::utils.

For example:
https://github.com/apache/arrow-datafusion/blob/373e291faba5b3c722018367e01a6b59a91bddee/datafusion/optimizer/src/utils.rs#L218-L225
https://github.com/apache/arrow-datafusion/blob/373e291faba5b3c722018367e01a6b59a91bddee/datafusion/expr/src/expr_rewriter/mod.rs#L140-L144

New readers may be confused.

Describe the solution you'd like

Unify generic expr rewrite functions into the datafusion_expr::expr_rewriter for maintenance

Describe alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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