Skip to content

Optimize COALESCE(l.x, r.y) from l left join r on l.x = r.y to l.xΒ #26984

@kaikalur

Description

@kaikalur

Some tool generated queries do weird things like:

COALESCE(l.x, r.y) from l left join r on l.x = r.y

which is simply l.x. By using coalesce, the plan gets messed up sometimes especially bucketed joins. So we should optimize this.

CC: @feilong-liu @maniloya

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    πŸ†• Unprioritized

    Status

    πŸ†• Unprioritized

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions