Skip to content

Commit e6e44e4

Browse files
scwfrxin
authored andcommitted
add note of how to support table with more than 22 fields
Author: wangfei <[email protected]> Closes mesos#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
1 parent 058797c commit e6e44e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/sql-programming-guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ val sqlContext = new org.apache.spark.sql.SQLContext(sc)
114114
import sqlContext._
115115

116116
// Define the schema using a case class.
117+
// Note: Case classes in Scala 2.10 can support only up to 22 fields. To work around this limit,
118+
// you can use custom classes that implement the Product interface.
117119
case class Person(name: String, age: Int)
118120

119121
// Create an RDD of Person objects and register it as a table.

0 commit comments

Comments
 (0)