GitHub user HyukjinKwon opened a pull request:

    https://github.com/apache/spark/pull/10218

    [SPARK-12227][SQL] Support drop multiple columns specified by Column class 
in DataFrame API

    https://issues.apache.org/jira/browse/SPARK-12227
    
    In this PR, I added the support to drop multiple columns by reference. This 
was only supported with the string names.
    
    As `varargs` does not recognise the type for multuple variables, I changed 
`drop(colNames: String*)` to `drop(colName: String, colNames: String*)` 
correspondingly to `orderBy(sortCol: String, sortCols: String*)` and 
`sort(sortCol: String, sortCols: String*)`.
    
    Accordingly, the call in `drop(colName: String)` is changed.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/HyukjinKwon/spark SPARK-12227

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/10218.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 #10218
    
----
commit cae52921a1491f2dee9d130aaeadc21b7e9cb168
Author: hyukjinkwon <[email protected]>
Date:   2015-12-09T06:25:20Z

    Support to drop multiple columns by reference

commit 22235269995f5c525da0d9aef948803883ca91ae
Author: hyukjinkwon <[email protected]>
Date:   2015-12-09T06:36:58Z

    Change comments

----


---
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]

Reply via email to