Skip to content

Commit

Permalink
[DOCS] Update StructType.scala
Browse files Browse the repository at this point in the history
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 <[email protected]>

Closes apache#10141 from swkimme/patch-1.
  • Loading branch information
swkimme authored and marmbrus committed Feb 2, 2016
1 parent d0df2ca commit b377b03
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b377b03

Please sign in to comment.