You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2016/02/02 22:24:31 UTC
spark git commit: [DOCS] Update StructType.scala
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 <sa...@gmail.com>
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 <sa...@gmail.com>
Authored: Tue Feb 2 13:24:09 2016 -0800
Committer: Michael Armbrust <mi...@databricks.com>
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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org