Repository: spark
Updated Branches:
  refs/heads/branch-1.3 6af9408a9 -> 8e4e2e3f8


[DOCUMENTATION]Fixed Missing Type Import in Documentation

Needed to import the types specifically, not the more general pyspark.sql

Author: Bill Chambers <[email protected]>
Author: anabranch <[email protected]>

Closes #5179 from anabranch/master and squashes the following commits:

8fa67bf [anabranch] Corrected SqlContext Import
603b080 [Bill Chambers] [DOCUMENTATION]Fixed Missing Type Import in 
Documentation

(cherry picked from commit c5cc41468e8709d09c09289bb55bc8edc99404b1)
Signed-off-by: Reynold Xin <[email protected]>


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

Branch: refs/heads/branch-1.3
Commit: 8e4e2e3f8ca677fb1599ae87b17dbf5e21e02849
Parents: 6af9408
Author: Bill Chambers <[email protected]>
Authored: Tue Mar 24 22:24:35 2015 -0700
Committer: Reynold Xin <[email protected]>
Committed: Tue Mar 24 22:24:44 2015 -0700

----------------------------------------------------------------------
 docs/sql-programming-guide.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8e4e2e3f/docs/sql-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index 6a333fd..c99a0b0 100644
--- a/docs/sql-programming-guide.md
+++ b/docs/sql-programming-guide.md
@@ -624,7 +624,8 @@ tuples or lists in the RDD created in the step 1.
 For example:
 {% highlight python %}
 # Import SQLContext and data types
-from pyspark.sql import *
+from pyspark.sql import SQLContext
+from pyspark.sql.types import *
 
 # sc is an existing SparkContext.
 sqlContext = SQLContext(sc)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to