Github user marmbrus commented on the pull request:
https://github.com/apache/spark/pull/9993#issuecomment-159968877
I agree with @hvanhovell, this is already taken care of by common
subexpression elimination in codegen (i.e. even though the udf appears twice we
reuse the answer when doing evaluation). As a result I think this patch is
actually making things slower by adding another layer to the plan.
---
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]