Skip to content

after type coercion CommonSubexprEliminate will produce invalid projection #3635

@liukun4515

Description

@liukun4515

Describe the bug

after do this pr with moving the type coercion to the beginning for the optimizer, the CommonSubexprEliminate will generate the invalid projection

maybe like #2907

I think many of the optimizer rule didn't take care of the cast/try_cast for the type coercion.

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

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