Skip to content
Snippets Groups Projects
Commit c771e475 authored by Takeshi Yamamuro's avatar Takeshi Yamamuro Committed by Sean Owen
Browse files

[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
parent ed5f4bb7
No related branches found
No related tags found
No related merge requests found
...@@ -286,6 +286,7 @@ class SQLContext(@transient val sparkContext: SparkContext) ...@@ -286,6 +286,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
* Example: * Example:
* {{{ * {{{
* import org.apache.spark.sql._ * import org.apache.spark.sql._
* import org.apache.spark.sql.types._
* val sqlContext = new org.apache.spark.sql.SQLContext(sc) * val sqlContext = new org.apache.spark.sql.SQLContext(sc)
* *
* val schema = * val schema =
...@@ -377,6 +378,7 @@ class SQLContext(@transient val sparkContext: SparkContext) ...@@ -377,6 +378,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
* Example: * Example:
* {{{ * {{{
* import org.apache.spark.sql._ * import org.apache.spark.sql._
* import org.apache.spark.sql.types._
* val sqlContext = new org.apache.spark.sql.SQLContext(sc) * val sqlContext = new org.apache.spark.sql.SQLContext(sc)
* *
* val schema = * val schema =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment