aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorTakeshi Yamamuro <linguin.m.s@gmail.com>2015-02-15 14:42:20 +0000
committerSean Owen <sowen@cloudera.com>2015-02-15 14:42:20 +0000
commitc771e475c449fe07cf45f37bdca2ba6ce9600bfc (patch)
tree1b640a503488e8fbc11619773e10b4bcc73e26fc /sql
parented5f4bb7cb2c934b818d1e8b8b4e6a0056119c80 (diff)
downloadspark-c771e475c449fe07cf45f37bdca2ba6ce9600bfc.tar.gz
spark-c771e475c449fe07cf45f37bdca2ba6ce9600bfc.tar.bz2
spark-c771e475c449fe07cf45f37bdca2ba6ce9600bfc.zip
[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 <linguin.m.s@gmail.com> Closes #4615 from maropu/AddMissingImportInSqlContext and squashes the following commits: ab21b66 [Takeshi Yamamuro] Add missing import in the example of SqlContext
Diffstat (limited to 'sql')
-rw-r--r--sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala2
1 files changed, 2 insertions, 0 deletions
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 a1736d0277..6d1914808a 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 =