Skip to content

Move WHERE expression to join conversion to optimization rule #3840

Open

Description

@Dandandan

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
During optimization, we generate filter expressions that might benefit from being optimized to joins.

Currently, where filters like these where left_column = right_column are converted to joins in the SQL planner (in the function plan_selection).
We should have a rule that does the same thing and let it replace the conversion in the planner.

Describe the solution you'd like
Implement the where expression to join conversion in an optimization rule instead, so it can also be used after filters have been added to the plan and try to convert them to joins as well.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

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

Activity

  1. changed the title [-]Move WHERE to join to optimization rule[/-] [+]Move WHERE expression to join conversion to optimization rule[/+] on Oct 15, 2022
  2. yuuch commented on Oct 17, 2022

    @yuuch

    I want to try this. 😊

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