Description
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.