GitHub user sun-rui opened a pull request:
https://github.com/apache/spark/pull/10220
[SPARK-12235][SPARKR] Enhance mutate() to support replace existing columns.
Make the behavior of mutate more consistent with that in dplyr, besides
support for replacing existing columns.
1. Throw error message when there are duplicated column names in the
DataFrame being mutated.
2. when there are duplicated column names in specified columns by
arguments, the last column of the same name takes effect.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sun-rui/spark SPARK-12235
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10220.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #10220
----
commit ac34da1e8385161fc50ce21a0595437a0854d78b
Author: Sun Rui <[email protected]>
Date: 2015-12-09T07:14:33Z
[SPARK-12235][SPARKR] Enhance mutate() to support replace existing columns.
----
---
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]