[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:
parent
d0df2ca409
commit
b377b03531
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue