cloud-fan commented on PR #38513:
URL: https://github.com/apache/spark/pull/38513#issuecomment-1306748021
We should not change query semantics after reordering, as this is
canonicalization. It's hard to convince people that different result types
still guarantee the same query semantic.
cloud-fan commented on PR #38513:
URL: https://github.com/apache/spark/pull/38513#issuecomment-1305100077
I think canonicalization should not change the data type in the first place.
Adding cast only hides the bug. What's worse, it doesn't help with the goal of
canonicalization: match