You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2015/02/15 15:42:25 UTC

spark git commit: [SPARK-5827][SQL] Add missing import in the example of SqlContext

Repository: spark
Updated Branches:
  refs/heads/master ed5f4bb7c -> c771e475c


[SPARK-5827][SQL] Add missing import in the example of SqlContext

If one tries an example by using copy&paste, throw an exception.

Author: Takeshi Yamamuro <li...@gmail.com>

Closes #4615 from maropu/AddMissingImportInSqlContext and squashes the following commits:

ab21b66 [Takeshi Yamamuro] Add missing import in the example of SqlContext


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

Branch: refs/heads/master
Commit: c771e475c449fe07cf45f37bdca2ba6ce9600bfc
Parents: ed5f4bb
Author: Takeshi Yamamuro <li...@gmail.com>
Authored: Sun Feb 15 14:42:20 2015 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Sun Feb 15 14:42:20 2015 +0000

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


http://git-wip-us.apache.org/repos/asf/spark/blob/c771e475/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 a1736d0..6d19148 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
@@ -286,6 +286,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
    * Example:
    * {{{
    *  import org.apache.spark.sql._
+   *  import org.apache.spark.sql.types._
    *  val sqlContext = new org.apache.spark.sql.SQLContext(sc)
    *
    *  val schema =
@@ -377,6 +378,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
    * Example:
    * {{{
    *  import org.apache.spark.sql._
+   *  import org.apache.spark.sql.types._
    *  val sqlContext = new org.apache.spark.sql.SQLContext(sc)
    *
    *  val schema =


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