Github user yhuai commented on the pull request:
https://github.com/apache/spark/pull/4057#issuecomment-70977695
Although coalesce only returns the first non-null value, but we need to
correctly set the type of coalesce. Let's say we have two columns. The type of
one is LongType and the type of another one is IntType, when we do coalesce,
the return type of coalesce should be LongType. Right now, there will be an
error when we are trying to call coalesce for these two columns. In
FunctionArgumentConversion, we should make sure all expressions of coalesce are
in the same type and if they are not, we should add cast.
---
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]