spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject spark git commit: [SQL][docs][minor] Fixed sample code in SQLContext scaladoc
Date Tue, 17 Mar 2015 06:52:47 GMT
Repository: spark
Updated Branches:
  refs/heads/master f0edeae7f -> 68707225f


[SQL][docs][minor] Fixed sample code in SQLContext scaladoc

Error in the code sample of the `implicits` object in `SQLContext`.

Author: Lomig Mégard <lomig.megard@gmail.com>

Closes #5051 from tarfaa/simple and squashes the following commits:

5a88acc [Lomig Mégard] [docs][minor] Fixed sample code in SQLContext scaladoc


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/68707225
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/68707225
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/68707225

Branch: refs/heads/master
Commit: 68707225f1a4081aadbf0fd7e6221293a190529b
Parents: f0edeae
Author: Lomig Mégard <lomig.megard@gmail.com>
Authored: Mon Mar 16 23:52:42 2015 -0700
Committer: Reynold Xin <rxin@databricks.com>
Committed: Mon Mar 16 23:52:42 2015 -0700

----------------------------------------------------------------------
 sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/68707225/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
index 297d0d6..6de46a5 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
@@ -242,8 +242,8 @@ class SQLContext(@transient val sparkContext: SparkContext)
    * common Scala objects into [[DataFrame]]s.
    *
    * {{{
-   *   val sqlContext = new SQLContext
-   *   import sqlContext._
+   *   val sqlContext = new SQLContext(sc)
+   *   import sqlContext.implicits._
    * }}}
    *
    * @group basic


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message