Github user yhuai commented on the pull request:
https://github.com/apache/spark/pull/4057#issuecomment-70787234
Thank you for working it!
Can you explain why your change can make `Coalesce(null, 1, null)` work? To
me, it looks like an issue in constant folding instead of the return type.
Also, if we want to parse `Coalesce`, I think we really need to correctly
set the return type of it (and correctly set `nullable`). Just taking the first
expression's type seems not right. Can you take a look at this issue?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]