spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrewo...@apache.org
Subject spark git commit: [SPARK-15225][SQL] Replace SQLContext with SparkSession in Encoder documentation
Date Mon, 09 May 2016 18:06:24 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.0 1b4e99ff1 -> 8f0ed2891


[SPARK-15225][SQL] Replace SQLContext with SparkSession in Encoder documentation

`Encoder`'s doc mentions `sqlContext.implicits._`. We should use `sparkSession.implicits._`
instead now.

Only doc update.

Author: Liang-Chi Hsieh <simonh@tw.ibm.com>

Closes #13002 from viirya/encoder-doc.

(cherry picked from commit e083db2e9e87bf8b6c135568c2b4860f772fc277)
Signed-off-by: Andrew Or <andrew@databricks.com>


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

Branch: refs/heads/branch-2.0
Commit: 8f0ed28918ecb39f88c4c23a037214ef4f22a106
Parents: 1b4e99f
Author: Liang-Chi Hsieh <simonh@tw.ibm.com>
Authored: Mon May 9 11:05:55 2016 -0700
Committer: Andrew Or <andrew@databricks.com>
Committed: Mon May 9 11:06:18 2016 -0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/spark/sql/Encoder.scala        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8f0ed289/sql/catalyst/src/main/scala/org/apache/spark/sql/Encoder.scala
----------------------------------------------------------------------
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/Encoder.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/Encoder.scala
index ffa694f..501c130 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/Encoder.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/Encoder.scala
@@ -29,13 +29,13 @@ import org.apache.spark.sql.types._
  * Used to convert a JVM object of type `T` to and from the internal Spark SQL representation.
  *
  * == Scala ==
- * Encoders are generally created automatically through implicits from a `SQLContext`, or
can be
+ * Encoders are generally created automatically through implicits from a `SparkSession`,
or can be
  * explicitly created by calling static methods on [[Encoders]].
  *
  * {{{
- *   import sqlContext.implicits._
+ *   import spark.implicits._
  *
- *   val ds = Seq(1, 2, 3).toDS() // implicitly provided (sqlContext.implicits.newIntEncoder)
+ *   val ds = Seq(1, 2, 3).toDS() // implicitly provided (spark.implicits.newIntEncoder)
  * }}}
  *
  * == Java ==
@@ -69,7 +69,7 @@ import org.apache.spark.sql.types._
 @Experimental
 @implicitNotFound("Unable to find encoder for type stored in a Dataset.  Primitive types
" +
   "(Int, String, etc) and Product types (case classes) are supported by importing " +
-  "sqlContext.implicits._  Support for serializing other types will be added in future "
+
+  "spark.implicits._  Support for serializing other types will be added in future " +
   "releases.")
 trait Encoder[T] extends Serializable {
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message