Repository: spark Updated Branches: refs/heads/master 058797c17 -> e6e44e46e
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 Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e6e44e46 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e6e44e46 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e6e44e46 Branch: refs/heads/master Commit: e6e44e46e345640fd89be9f10cdc448b44d30cc1 Parents: 058797c Author: wangfei <[email protected]> Authored: Sat Apr 26 14:38:42 2014 -0700 Committer: Reynold Xin <[email protected]> Committed: Sat Apr 26 14:38:42 2014 -0700 ---------------------------------------------------------------------- docs/sql-programming-guide.md | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/e6e44e46/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.
