Skip to content

Shouldn't extract common sub expression for short-circuited operation. #8874

@haohuaijin

Description

@haohuaijin

Describe the bug

As @jackwener said in #8833 (comment), we shouldn't extract common sub-expressions for short-circuited operations, such as COALESCE | OR.
In #8833, we deal with CASE WHEN, but all short-circuited expressions shouldn't be extracted from common sub-expressions.

To Reproduce

No response

Expected behavior

Shouldn't extract common sub-expressions for short-circuited operation.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions