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 #10141 from swkimme/patch-1.

(cherry picked from commit b377b03)
Signed-off-by: Michael Armbrust <[email protected]>
  • Loading branch information
swkimme authored and marmbrus committed Feb 2, 2016
1 parent 3c92333 commit e81333b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import org.apache.spark.sql.catalyst.expressions.{Attribute, AttributeReference,
* Example:
* {{{
* import org.apache.spark.sql._
* import org.apache.spark.sql.types._
*
* val struct =
* StructType(
Expand Down

0 comments on commit e81333b

Please sign in to comment.