Skip to content

Conversation

@hagenhaus
Copy link
Contributor

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.

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.
@hagenhaus hagenhaus closed this Sep 23, 2015
@hagenhaus hagenhaus reopened this Sep 23, 2015
@hagenhaus hagenhaus changed the title Removed unnecessary invocation of DataFrame.toDF method. [SPARK-10663] Removed unnecessary invocation of DataFrame.toDF method. Sep 23, 2015
@mengxr
Copy link
Contributor

mengxr commented Sep 23, 2015

ok to test

asfgit pushed a commit that referenced this pull request Sep 23, 2015
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.

Author: Matt Hagen <[email protected]>

Closes #8875 from hagenhaus/SPARK-10663.

(cherry picked from commit 558e9c7)
Signed-off-by: Xiangrui Meng <[email protected]>
@mengxr
Copy link
Contributor

mengxr commented Sep 23, 2015

LGTM. Merged into master and branch-1.5. Thanks!

@asfgit asfgit closed this in 558e9c7 Sep 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants