Skip to content

Commit c771e47

Browse files
maropusrowen
authored andcommitted
[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 apache#4615 from maropu/AddMissingImportInSqlContext and squashes the following commits: ab21b66 [Takeshi Yamamuro] Add missing import in the example of SqlContext
1 parent ed5f4bb commit c771e47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
286286
* Example:
287287
* {{{
288288
* import org.apache.spark.sql._
289+
* import org.apache.spark.sql.types._
289290
* val sqlContext = new org.apache.spark.sql.SQLContext(sc)
290291
*
291292
* val schema =
@@ -377,6 +378,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
377378
* Example:
378379
* {{{
379380
* import org.apache.spark.sql._
381+
* import org.apache.spark.sql.types._
380382
* val sqlContext = new org.apache.spark.sql.SQLContext(sc)
381383
*
382384
* val schema =

0 commit comments

Comments
 (0)