diff options
author | wangfei <wangfei1@huawei.com> | 2014-04-26 14:38:42 -0700 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-04-26 14:38:42 -0700 |
commit | e6e44e46e345640fd89be9f10cdc448b44d30cc1 (patch) | |
tree | 5bc12636ef8fb4a52cc6fb48354c4f8a248157c6 /docs/sql-programming-guide.md | |
parent | 058797c1722c9251f6bc6ad2672cb0e79146b04f (diff) | |
download | spark-e6e44e46e345640fd89be9f10cdc448b44d30cc1.tar.gz spark-e6e44e46e345640fd89be9f10cdc448b44d30cc1.tar.bz2 spark-e6e44e46e345640fd89be9f10cdc448b44d30cc1.zip |
add note of how to support table with more than 22 fields
Author: wangfei <wangfei1@huawei.com>
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
Diffstat (limited to 'docs/sql-programming-guide.md')
-rw-r--r-- | docs/sql-programming-guide.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index 3ca6cc95bd..0c743c9d60 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. |