Repository: spark Updated Branches: refs/heads/master d0df2ca40 -> b377b0353
[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. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/b377b035 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/b377b035 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/b377b035 Branch: refs/heads/master Commit: b377b03531d21b1d02a8f58b3791348962e1f31b Parents: d0df2ca Author: Kevin (Sangwoo) Kim <[email protected]> Authored: Tue Feb 2 13:24:09 2016 -0800 Committer: Michael Armbrust <[email protected]> Committed: Tue Feb 2 13:24:21 2016 -0800 ---------------------------------------------------------------------- .../src/main/scala/org/apache/spark/sql/types/StructType.scala | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/b377b035/sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala ---------------------------------------------------------------------- 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 c9e7e7f..e797d83 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( --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
