Repository: spark Updated Branches: refs/heads/master c14ddd97e -> c5cc41468
[DOCUMENTATION]Fixed Missing Type Import in Documentation Needed to import the types specifically, not the more general pyspark.sql Author: Bill Chambers <wchamb...@ischool.berkeley.edu> Author: anabranch <wac.chamb...@gmail.com> 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 Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c5cc4146 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c5cc4146 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c5cc4146 Branch: refs/heads/master Commit: c5cc41468e8709d09c09289bb55bc8edc99404b1 Parents: c14ddd9 Author: Bill Chambers <wchamb...@ischool.berkeley.edu> Authored: Tue Mar 24 22:24:35 2015 -0700 Committer: Reynold Xin <r...@databricks.com> Committed: Tue Mar 24 22:24:35 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/c5cc4146/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: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org