diff options
author | hyukjinkwon <gurwls223@gmail.com> | 2016-05-09 10:54:56 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2016-05-09 10:55:17 -0700 |
commit | 2992a215c9cd95a2be986b254f4e27d18e248b7d (patch) | |
tree | 2db3fd2c49a2d232b51baa80e47b705dd13100db | |
parent | 671b382a80bc789d50f609783c7ba88fafc0c251 (diff) | |
download | spark-2992a215c9cd95a2be986b254f4e27d18e248b7d.tar.gz spark-2992a215c9cd95a2be986b254f4e27d18e248b7d.tar.bz2 spark-2992a215c9cd95a2be986b254f4e27d18e248b7d.zip |
[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.
-rw-r--r-- | examples/src/main/java/org/apache/spark/examples/sql/JavaSparkSQL.java | 2 | ||||
-rw-r--r-- | examples/src/main/python/sql.py | 2 |
2 files changed, 2 insertions, 2 deletions
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 755b4f5381..d956750dc7 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. diff --git a/examples/src/main/python/sql.py b/examples/src/main/python/sql.py index 5594223465..d2e895d931 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(): |