GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/8159
[SPARK-9929][SQL] support metadata in withColumn
in MLlib sometimes we need to set metadata for the new column, thus we will
alias the new column with metadata before call `withColumn` and in `withColumn`
we alias this clolumn again. Here I overloaded `withColumn` to allow user set
metadata, just like what we did for `Column.as`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark withColumn
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/8159.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 #8159
----
commit 4698d05db5e874cc6cb7aa3dced022809bf3ba3d
Author: Wenchen Fan <[email protected]>
Date: 2015-08-13T04:24:42Z
support metadata in withColumn
----
---
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]