Skip to content

Commit b377b03

Browse files
swkimmemarmbrus
authored andcommitted
[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 <[email protected]> Closes #10141 from swkimme/patch-1.
1 parent d0df2ca commit b377b03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import org.apache.spark.sql.catalyst.util.{DataTypeParser, LegacyTypeStringParse
4040
* Example:
4141
* {{{
4242
* import org.apache.spark.sql._
43+
* import org.apache.spark.sql.types._
4344
*
4445
* val struct =
4546
* StructType(

0 commit comments

Comments
 (0)