[DOCS] Update StructType.scala

The example will throw error like
<console>:20: error: not found: value StructType

Need to add this line:
import org.apache.spark.sql.types._

Author: Kevin (Sangwoo) Kim <sangwookim.me@gmail.com>

Closes #10141 from swkimme/patch-1.
This commit is contained in:
Kevin (Sangwoo) Kim 2016-02-02 13:24:09 -08:00 committed by Michael Armbrust
parent d0df2ca409
commit b377b03531

View file

@ -40,6 +40,7 @@ import org.apache.spark.sql.catalyst.util.{DataTypeParser, LegacyTypeStringParse
* Example:
* {{{
* import org.apache.spark.sql._
* import org.apache.spark.sql.types._
*
* val struct =
* StructType(