diff options
author | Kevin (Sangwoo) Kim <sangwookim.me@gmail.com> | 2016-02-02 13:24:09 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2016-02-02 13:24:21 -0800 |
commit | b377b03531d21b1d02a8f58b3791348962e1f31b (patch) | |
tree | e62c117ef0109802075b16d01cf7a6bf36a58b71 /sql | |
parent | d0df2ca40953ba581dce199798a168af01283cdc (diff) | |
download | spark-b377b03531d21b1d02a8f58b3791348962e1f31b.tar.gz spark-b377b03531d21b1d02a8f58b3791348962e1f31b.tar.bz2 spark-b377b03531d21b1d02a8f58b3791348962e1f31b.zip |
[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.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala index c9e7e7fe63..e797d83cb0 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala @@ -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( |