Repository: spark
Updated Branches:
  refs/heads/branch-1.0 f85c6815e -> a020686de


add note of how to support table with more than 22 fields

Author: wangfei <[email protected]>

Closes #564 from scwf/patch-6 and squashes the following commits:

a331876 [wangfei] Update sql-programming-guide.md
685135b [wangfei] Update sql-programming-guide.md
10b3dc0 [wangfei] Update sql-programming-guide.md
1c40480 [wangfei] add note of how to support table with 22 fields

(cherry picked from commit e6e44e46e345640fd89be9f10cdc448b44d30cc1)
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/a020686d
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/a020686d
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/a020686d

Branch: refs/heads/branch-1.0
Commit: a020686de4ad4af37cae6542fbbe7a5414fa37e8
Parents: f85c681
Author: wangfei <[email protected]>
Authored: Sat Apr 26 14:38:42 2014 -0700
Committer: Reynold Xin <[email protected]>
Committed: Sat Apr 26 14:38:51 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/spark/blob/a020686d/docs/sql-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index 3ca6cc9..0c743c9 100644
--- a/docs/sql-programming-guide.md
+++ b/docs/sql-programming-guide.md
@@ -114,6 +114,8 @@ val sqlContext = new org.apache.spark.sql.SQLContext(sc)
 import sqlContext._
 
 // Define the schema using a case class.
+// Note: Case classes in Scala 2.10 can support only up to 22 fields. To work 
around this limit, 
+// you can use custom classes that implement the Product interface.
 case class Person(name: String, age: Int)
 
 // Create an RDD of Person objects and register it as a table.

Reply via email to