spark git commit: [SPARK-6275][Documentation]Miss toDF() function in docs/sql-programming-guide.md

2015-03-13 Thread srowen
Repository: spark
Updated Branches:
  refs/heads/branch-1.3 a08588c7e - 301278126


[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/30127812
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/30127812
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/30127812

Branch: refs/heads/branch-1.3
Commit: 30127812629a53a1b45c4d90b70c5cc55dd28fb6
Parents: a08588c
Author: zzcclp xm_...@sina.com
Authored: Thu Mar 12 15:07:15 2015 +
Committer: Sean Owen so...@cloudera.com
Committed: Fri Mar 13 18:44:52 2015 +

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


http://git-wip-us.apache.org/repos/asf/spark/blob/30127812/docs/sql-programming-guide.md
--
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index b1e309c..11c29e2 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



spark git commit: [SPARK-6275][Documentation]Miss toDF() function in docs/sql-programming-guide.md

2015-03-12 Thread srowen
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 +
Committer: Sean Owen so...@cloudera.com
Committed: Thu Mar 12 15:07:15 2015 +

--
 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