Repository: spark
Updated Branches:
  refs/heads/branch-1.6 3c92333ee -> e81333be0


[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.

(cherry picked from commit b377b03531d21b1d02a8f58b3791348962e1f31b)
Signed-off-by: Michael Armbrust <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e81333be
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e81333be
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e81333be

Branch: refs/heads/branch-1.6
Commit: e81333be05cc5e2a41e5eb1a630c5af59a47dd23
Parents: 3c92333
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:37 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/e81333be/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 494bb86..1939633 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
@@ -39,6 +39,7 @@ import org.apache.spark.sql.catalyst.expressions.{Attribute, 
AttributeReference,
  * 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]

Reply via email to