GitHub user henryr opened a pull request:
https://github.com/apache/spark/pull/20429
[SPARK-23157][SQL] Explain restriction on column expression in withColumn()
## What changes were proposed in this pull request?
It's not obvious from the comments that any added column must be a
function of the dataset that we are adding it to. Add a comment to
that effect to Scala, Python and R Data* methods.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/henryr/spark SPARK-23157
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20429.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 #20429
----
commit 18f30863a67e1ad49be87765badab69647e45d7a
Author: Henry Robinson <henry@...>
Date: 2018-01-29T21:51:00Z
[SPARK-23157][SQL] Explain restriction on column expression in withColumn()
It's not obvious from the comments that any added column must be a
function of the dataset that we are adding it to. Add a comment to
that effect to Scala, Python and R Data* methods.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]