From e6e44e46e345640fd89be9f10cdc448b44d30cc1 Mon Sep 17 00:00:00 2001
From: wangfei <wangfei1@huawei.com>
Date: Sat, 26 Apr 2014 14:38:42 -0700
Subject: [PATCH] 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
---
 docs/sql-programming-guide.md | 2 ++
 1 file changed, 2 insertions(+)

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