spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrewo...@apache.org
Subject spark git commit: [MINOR][DOCS] Remove remaining sqlContext in documentation at examples
Date Mon, 09 May 2016 17:55:37 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.0 de6afc887 -> 6371197c6


[MINOR][DOCS] Remove remaining sqlContext in documentation at examples

This PR removes `sqlContext` in examples. Actual usage was all replaced in https://github.com/apache/spark/pull/12809
but there are some in comments.

Manual style checking.

Author: hyukjinkwon <gurwls223@gmail.com>

Closes #13006 from HyukjinKwon/minor-docs.

(cherry picked from commit 2992a215c9cd95a2be986b254f4e27d18e248b7d)
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/6371197c
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/6371197c
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/6371197c

Branch: refs/heads/branch-2.0
Commit: 6371197c610b08635e9f910a763c98aa5094f7e5
Parents: de6afc8
Author: hyukjinkwon <gurwls223@gmail.com>
Authored: Mon May 9 10:54:56 2016 -0700
Committer: Andrew Or <andrew@databricks.com>
Committed: Mon May 9 10:55:29 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/spark/examples/sql/JavaSparkSQL.java  | 2 +-
 examples/src/main/python/sql.py                                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/6371197c/examples/src/main/java/org/apache/spark/examples/sql/JavaSparkSQL.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/spark/examples/sql/JavaSparkSQL.java b/examples/src/main/java/org/apache/spark/examples/sql/JavaSparkSQL.java
index 755b4f5..d956750 100644
--- a/examples/src/main/java/org/apache/spark/examples/sql/JavaSparkSQL.java
+++ b/examples/src/main/java/org/apache/spark/examples/sql/JavaSparkSQL.java
@@ -133,7 +133,7 @@ public class JavaSparkSQL {
     // Register this DataFrame as a table.
     peopleFromJsonFile.registerTempTable("people");
 
-    // SQL statements can be run by using the sql methods provided by sqlContext.
+    // SQL statements can be run by using the sql methods provided by `spark`
     Dataset<Row> teenagers3 = spark.sql("SELECT name FROM people WHERE age >= 13
AND age <= 19");
 
     // The results of SQL queries are DataFrame and support all the normal RDD operations.

http://git-wip-us.apache.org/repos/asf/spark/blob/6371197c/examples/src/main/python/sql.py
----------------------------------------------------------------------
diff --git a/examples/src/main/python/sql.py b/examples/src/main/python/sql.py
index 5594223..d2e895d 100644
--- a/examples/src/main/python/sql.py
+++ b/examples/src/main/python/sql.py
@@ -69,7 +69,7 @@ if __name__ == "__main__":
     # Register this DataFrame as a temporary table.
     people.registerTempTable("people")
 
-    # SQL statements can be run by using the sql methods provided by sqlContext
+    # SQL statements can be run by using the sql methods provided by `spark`
     teenagers = spark.sql("SELECT name FROM people WHERE age >= 13 AND age <= 19")
 
     for each in teenagers.collect():


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


Mime
View raw message