GitHub user hagenhaus opened a pull request:

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

    Removed unnecessary invocation of DataFrame.toDF method.

    The Scala example under the "Example: Pipeline" heading in this
    document initializes the "test" variable to a DataFrame. Because test
    is already a DF, there is not need to call test.toDF as the example
    does in a subsequent line: model.transform(test.toDF). So, I removed
    the extraneous toDF invocation.

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

    $ git pull https://github.com/hagenhaus/spark SPARK-10663

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

    https://github.com/apache/spark/pull/8875.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 #8875
    
----
commit 3e8cefa68d74d1251a837f04fc8165ca79e61d55
Author: Matt Hagen <[email protected]>
Date:   2015-09-23T00:51:34Z

    Removed unnecessary invocation of DataFrame.toDF method.
    
    The Scala example under the "Example: Pipeline" heading in this
    document initializes the "test" variable to a DataFrame. Because test
    is already a DF, there is not need to call test.toDF as the example
    does in a subsequent line: model.transform(test.toDF). So, I removed
    the extraneous toDF invocation.

----


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