Repository: spark Updated Branches: refs/heads/master 4e47d54be -> 304366c46
[SPARK-6275][Documentation]Miss toDF() function in docs/sql-programming-guide.md Miss `toDF()` function in docs/sql-programming-guide.md Author: zzcclp <xm_...@sina.com> Closes #4977 from zzcclp/SPARK-6275 and squashes the following commits: 9a96c7b [zzcclp] Miss toDF() Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/304366c4 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/304366c4 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/304366c4 Branch: refs/heads/master Commit: 304366c465c3266653b5ec7758277cf8d7027888 Parents: 4e47d54 Author: zzcclp <xm_...@sina.com> Authored: Thu Mar 12 15:07:15 2015 +0000 Committer: Sean Owen <so...@cloudera.com> Committed: Thu Mar 12 15:07:15 2015 +0000 ---------------------------------------------------------------------- docs/sql-programming-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/304366c4/docs/sql-programming-guide.md ---------------------------------------------------------------------- diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index 9c363bc..76aa1a5 100644 --- a/docs/sql-programming-guide.md +++ b/docs/sql-programming-guide.md @@ -358,7 +358,7 @@ import sqlContext.implicits._ case class Person(name: String, age: Int) // Create an RDD of Person objects and register it as a table. -val people = sc.textFile("examples/src/main/resources/people.txt").map(_.split(",")).map(p => Person(p(0), p(1).trim.toInt)) +val people = sc.textFile("examples/src/main/resources/people.txt").map(_.split(",")).map(p => Person(p(0), p(1).trim.toInt)).toDF() people.registerTempTable("people") // SQL statements can be run by using the sql methods provided by sqlContext. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org