Skip to content

Commit

Permalink
Merge pull request #1 from peerside/peerside-patch-1
Browse files Browse the repository at this point in the history
Updated comments use correct sample code for Dataframe joins
  • Loading branch information
Paul Power committed Mar 2, 2015
2 parents 3f00bb3 + e353340 commit ebc1efa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ class DataFrame protected[sql](
* {{{
* // Scala:
* import org.apache.spark.sql.functions._
* df1.join(df2, "outer", $"df1Key" === $"df2Key")
* df1.join(df2, $"df1Key" === $"df2Key", "outer")
*
* // Java:
* import static org.apache.spark.sql.functions.*;
* df1.join(df2, "outer", col("df1Key") === col("df2Key"));
* df1.join(df2, col("df1Key") === col("df2Key"), "outer");
* }}}
*
* @param right Right side of the join.
Expand Down

0 comments on commit ebc1efa

Please sign in to comment.